Apache-Einrichtung des Aliases

This commit is contained in:
phil 2021-06-26 02:53:44 +02:00
parent 2b518c2b2c
commit 6dcde84319
4 changed files with 52 additions and 0 deletions

View file

@ -15,3 +15,9 @@
insertafter: "^Ansbile"
line: "Use NCSite {{ instance.domain }} {{ instance.user }}"
notify: reload apache
- name: "apache: {{ instance.alias }}: Alias einrichten"
template:
src: apache_alias.j2
dest: "/etc/apache2/conf-available/{{ instance.domain }}.alias.conf"
notify: reload apache

View file

@ -26,6 +26,11 @@
loop: "{{ instances }}"
loop_control:
loop_var: instance
- name: "Apache: Vorlage für Seitenkonfiguration kopieren"
copy:
src: apache_site.conf
dest: /etc/apache/sites-available/nextcloud.conf
- name: "Webserver einrichten"
include_tasks: apache.yml
@ -33,6 +38,12 @@
loop_control:
loop_var: instance
- name: "Apache: Seitenkonfiguration aktivieren"
file:
src: /etc/apache/sites-available/nextcloud.conf
dest: /etc/apache/sites-enabled/nextcloud.conf
state: link
- import_tasks: redis.yml
- name: "Nextcloud einrichten"