在單個任務中複製多個檔案
- name: copy ssl key/cert/ssl_include files
copy: src=files/ssl/{{ item }} dest=/etc/apache2/ssl/
with_items:
- g_chain.crt
- server.crt
- server.key
- ssl_vhost.inc
- name: copy ssl key/cert/ssl_include files
copy: src=files/ssl/{{ item }} dest=/etc/apache2/ssl/
with_items:
- g_chain.crt
- server.crt
- server.key
- ssl_vhost.inc