ansible-role-nextcloud/tasks/main.yml

63 lines
1.3 KiB
YAML
Raw Normal View History

2020-12-03 15:52:14 +01:00
---
2021-06-26 02:40:46 +02:00
- name: "Versionen prüfen"
include_tasks: version.yml
tags: version
2021-06-26 02:40:46 +02:00
loop: "{{ instances }}"
loop_control:
loop_var: instance
2021-06-26 02:32:29 +02:00
2020-12-03 23:14:27 +01:00
- import_tasks: packages.yml
2021-06-26 02:40:46 +02:00
- name: "Gateway einrichten"
include_tasks: gateway.yml
loop: "{{ instances }}"
loop_control:
loop_var: instance
- name: "Datenbank einrichten"
include_tasks: database.yml
2020-12-03 15:52:14 +01:00
tags: database
2021-06-26 02:40:46 +02:00
loop: "{{ instances }}"
loop_control:
loop_var: instance
- name: "PHP-FPM einrichten"
include_tasks: php.yml
loop: "{{ instances }}"
loop_control:
loop_var: instance
2021-06-26 02:53:44 +02:00
- name: "Apache: Vorlage für Seitenkonfiguration kopieren"
copy:
src: apache_site.conf
2021-06-26 02:59:46 +02:00
dest: /etc/apache2/sites-available/nextcloud.conf
2021-06-26 02:40:46 +02:00
- name: "Webserver einrichten"
include_tasks: apache.yml
loop: "{{ instances }}"
loop_control:
loop_var: instance
2021-06-26 02:53:44 +02:00
- name: "Apache: Seitenkonfiguration aktivieren"
file:
2021-06-26 02:58:09 +02:00
src: /etc/apache2/sites-available/nextcloud.conf
dest: /etc/apache2/sites-enabled/nextcloud.conf
2021-06-26 02:53:44 +02:00
state: link
2020-12-03 23:54:55 +01:00
- import_tasks: redis.yml
2021-06-26 02:40:46 +02:00
- name: "Nextcloud einrichten"
include_tasks: nextcloud.yml
2020-12-03 15:52:14 +01:00
tags: nextcloud
2021-06-26 02:40:46 +02:00
loop: "{{ instances }}"
loop_control:
loop_var: instance
when: nc_is_installed.stat.exists == False
2021-06-26 02:40:46 +02:00
- name: "Hotfixes installieren"
include_tasks: fixes.yml
2021-06-26 00:51:50 +02:00
tags: fixes
2021-06-26 02:40:46 +02:00
loop: "{{ instances }}"
loop_control:
loop_var: instance