ansible-role-dmarc-srg/tasks/apache.yml

15 lines
468 B
YAML
Raw Normal View History

2023-08-16 20:51:05 +02:00
---
- name: "Apache | Copy virtualhost configuration"
ansible.builtin.template:
src: apache2.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