ansible-role-nextcloud/tasks/apache.yml

35 lines
994 B
YAML

---
- 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"
notify: reload apache
- 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
notify: reload apache