ansible-role-nextcloud/tasks/main.yml
2021-06-26 02:59:46 +02:00

62 lines
1.3 KiB
YAML

---
- name: "Versionen prüfen"
include_tasks: version.yml
tags: version
loop: "{{ instances }}"
loop_control:
loop_var: instance
- import_tasks: packages.yml
- name: "Gateway einrichten"
include_tasks: gateway.yml
loop: "{{ instances }}"
loop_control:
loop_var: instance
- name: "Datenbank einrichten"
include_tasks: database.yml
tags: database
loop: "{{ instances }}"
loop_control:
loop_var: instance
- name: "PHP-FPM einrichten"
include_tasks: php.yml
loop: "{{ instances }}"
loop_control:
loop_var: instance
- name: "Apache: Vorlage für Seitenkonfiguration kopieren"
copy:
src: apache_site.conf
dest: /etc/apache2/sites-available/nextcloud.conf
- name: "Webserver einrichten"
include_tasks: apache.yml
loop: "{{ instances }}"
loop_control:
loop_var: instance
- name: "Apache: Seitenkonfiguration aktivieren"
file:
src: /etc/apache2/sites-available/nextcloud.conf
dest: /etc/apache2/sites-enabled/nextcloud.conf
state: link
- import_tasks: redis.yml
- name: "Nextcloud einrichten"
include_tasks: nextcloud.yml
tags: nextcloud
loop: "{{ instances }}"
loop_control:
loop_var: instance
when: nc_is_installed.stat.exists == False
- name: "Hotfixes installieren"
include_tasks: fixes.yml
tags: fixes
loop: "{{ instances }}"
loop_control:
loop_var: instance