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

15 lines
467 B
YAML
Raw Permalink Normal View History

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