在单个任务中复制多个文件
- 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