ansible-role-nextcloud/tasks/apache.yml

14 lines
478 B
YAML

---
- name: "apache: {{ instance.domain }}: Seite einrichten"
lineinfile:
path: /etc/apache2/conf-available/nextcloud_sites.conf
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
when: instance.alias is defined