diff --git a/tasks/configuration.yml b/tasks/configuration.yml index 82d5703..d2278c5 100644 --- a/tasks/configuration.yml +++ b/tasks/configuration.yml @@ -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"