apache2: Aktiviere notwendige Module auf externen Hosts

This commit is contained in:
phil 2022-12-28 16:07:32 +01:00
parent c3aa0124d2
commit 91bd22d436

View file

@ -32,9 +32,20 @@
dest: /etc/apache2/conf-available/ssl.conf
mode: 0644
- name: "configuration | Aktiviere Module"
ansible.builtin.apache2_module:
name: "{{ item }}"
state: present
notify: reload apache2
when: "'extern_hosts' in group_names"
loop:
- headers
- mpm_event
- ssl
- name: "configuration | Aktiviere Konfiguration"
ansible.builtin.command:
cmd: "a2enmod {{ item }}"
cmd: "a2enconf {{ item }}"
creates: "/etc/apache2/conf-enabled/{{ item }}"
notify: reload apache2
when: "'extern_hosts' in group_names"