apache2: Aktiviere notwendige Module auf externen Hosts
This commit is contained in:
parent
c3aa0124d2
commit
91bd22d436
1 changed files with 12 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue