- name: Copy Apache config files
copy:
src: "{{ item.conf }}"
dest: /etc/httpd/{{ item.dir }}/{{ item.conf }}
become: yes
with_items:
- { conf: 'ssl.conf', dir: 'conf.d' }
- { conf: 'httpd.conf', dir: 'conf' }
notify: Restart Apache