2020-12-03 23:14:27 +01:00
|
|
|
---
|
2023-05-21 23:01:31 +02:00
|
|
|
- name: "Apache | Aktiviere Apache-Module"
|
|
|
|
community.general.apache2_module:
|
|
|
|
name: "{{ item.name }}"
|
|
|
|
state: "{{ item.state | default('present') }}"
|
|
|
|
loop:
|
|
|
|
- name: env
|
|
|
|
- name: expires
|
|
|
|
- name: headers
|
|
|
|
- name: macro
|
|
|
|
- name: mpm_event
|
|
|
|
- name: mpm_prefork
|
|
|
|
state: absent
|
|
|
|
- name: proxy_fcgi
|
|
|
|
- name: setenvif
|
|
|
|
notify: restart apache
|
|
|
|
|
|
|
|
- name: "Apache | Richte Nextcloud-Seiten ein"
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: apache2/nextcloud_sites.conf.j2
|
|
|
|
dest: /etc/apache2/conf-available/nextcloud_sites.conf
|
|
|
|
mode: "0644"
|
2020-12-03 23:14:27 +01:00
|
|
|
notify: reload apache
|
2021-06-26 02:53:44 +02:00
|
|
|
|
2023-05-21 23:01:31 +02:00
|
|
|
- name: "Apache | Kopiere Apache-Vorlage für Seitenkonfiguration"
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: apache2/nextcloud.conf.j2
|
|
|
|
dest: /etc/apache2/sites-available/nextcloud.conf
|
|
|
|
mode: "0644"
|
|
|
|
|
|
|
|
- name: "Apache | Aktiviere Apache-Seitenkonfiguration"
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: a2ensite nextcloud.conf
|
|
|
|
creates: /etc/apache2/sites-enabled/nextcloud.conf
|
2021-06-26 02:53:44 +02:00
|
|
|
notify: reload apache
|