--- - name: "Apache | Copy virtualhost configuration" ansible.builtin.template: src: apache.conf.j2 dest: "/etc/apache2/sites-available/{{ dmarcsrg_domain }}.conf" mode: "0644" notify: Reload apache2 - name: "Apache | Enable virtualhost configuration" ansible.builtin.file: src: "/etc/apache2/sites-available/{{ dmarcsrg_domain }}.conf" dest: "/etc/apache2/sites-enabled/{{ dmarcsrg_domain }}.conf" state: link notify: Reload apache2