ansible-role-nextcloud/tasks/main.yml

62 lines
1.4 KiB
YAML
Raw Normal View History

2020-12-03 15:52:14 +01:00
---
- name: Run common tasks
ansible.builtin.import_tasks: common.yml
tags: common
- name: Install packages
ansible.builtin.import_tasks: packages.yml
tags: packages
- name: Redis
ansible.builtin.import_tasks: redis.yml
tags: redis
- name: Setup Gateway
ansible.builtin.include_tasks: gateway.yml
args:
apply:
delegate_to: "{{ gateway_host }}"
loop: "{{ nextcloud_instances }}"
- name: Run database tasks
ansible.builtin.include_tasks: database.yml
2021-10-14 16:09:47 +02:00
tags: database
loop: "{{ nextcloud_instances }}"
- name: Run user tasks
ansible.builtin.include_tasks: user.yml
tags: user
loop: "{{ nextcloud_instances }}"
- name: Run php tasks
ansible.builtin.include_tasks: php.yml
2023-06-28 19:05:29 +02:00
tags: always
args:
apply:
tags: phpfpm
loop: "{{ nextcloud_instances }}"
- name: Run Hiddenservice tasks
ansible.builtin.include_tasks: hiddenservice.yml
loop: "{{ nextcloud_instances }}"
- name: Run Webserver tasks
ansible.builtin.import_tasks: apache.yml
2021-10-14 16:09:47 +02:00
tags: apache
- name: Installation
ansible.builtin.include_tasks: nextcloud.yml
loop: "{{ nextcloud_instances }}"
- name: Configure Nextcloud
ansible.builtin.include_tasks: configuration.yml
loop: "{{ nextcloud_instances }}"
loop_control:
loop_var: instances
index_var: instance_id
- name: Configure Fail2ban
ansible.builtin.include_tasks: fail2ban.yml
tags: fail2ban
loop: "{{ nextcloud_instances }}"