- name: Add {{ item }} configuration copy: src: '{{ item }}.conf' dest: /etc/apache2/sites-available/ owner: root group: root mode: 0644 - name: 'Enable {{ item }}' command: 'a2ensite {{ item }}' args: creates: '/etc/apache2/sites-enabled/{{ item }}' notify: - Reload apache2