2020-12-03 23:14:27 +01:00
|
|
|
---
|
2021-06-26 01:45:06 +02:00
|
|
|
- name: "apache: {{ instance.domain }}: Module laden"
|
2020-12-03 23:14:27 +01:00
|
|
|
apache2_module:
|
|
|
|
state: present
|
|
|
|
name: "{{ item }}"
|
|
|
|
with_items:
|
|
|
|
- macro
|
|
|
|
- proxy_fcgi
|
|
|
|
- setenvif
|
|
|
|
notify: restart apache
|
|
|
|
|
2021-06-26 01:45:06 +02:00
|
|
|
- name: "apache: {{ instance.domain }}: Seite einrichten"
|
2020-12-03 23:14:27 +01:00
|
|
|
lineinfile:
|
|
|
|
path: /etc/apache2/conf-available/nextcloud_sites.conf
|
|
|
|
insertafter: "^Ansbile"
|
2021-06-26 01:45:06 +02:00
|
|
|
line: "Use NCSite {{ instance.domain }} {{ instance.user }}"
|
2020-12-03 23:14:27 +01:00
|
|
|
notify: reload apache
|
2021-06-26 02:53:44 +02:00
|
|
|
|
|
|
|
- name: "apache: {{ instance.alias }}: Alias einrichten"
|
|
|
|
template:
|
|
|
|
src: apache_alias.j2
|
|
|
|
dest: "/etc/apache2/conf-available/{{ instance.domain }}.alias.conf"
|
|
|
|
notify: reload apache
|