ansible-role-dmarc-srg/tasks/apache.yml
2023-08-16 21:04:18 +02:00

14 lines
467 B
YAML

---
- 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