1
0
Fork 0

Initial version of nextcloud collection

Signed-off-by: Nis Wechselberg <enbewe@enbewe.de>
This commit is contained in:
Nis Wechselberg 2024-06-30 17:18:49 +02:00
parent e559257349
commit 87eac5bded
Signed by: enbewe
GPG key ID: 7B25171F921B9E57
13 changed files with 911 additions and 0 deletions

View file

@ -0,0 +1,89 @@
---
- name: 'Reload nextcloud services'
become: true
ansible.builtin.service:
daemon_reload: true
- name: 'Restart nextcloud network'
become: true
ansible.builtin.service:
name: '{{ nextcloud_podman_network }}-network'
state: 'restarted'
notify:
- 'Restart nextcloud-app container'
# - 'Restart nextcloud-cron container'
- 'Restart nextcloud-db container'
- 'Restart nextcloud-redis container'
- name: 'Restart nextcloud volumes'
become: true
ansible.builtin.service:
name: '{{ item }}'
state: 'restarted'
loop:
- '{{ nextcloud_app_volume }}-volume'
- '{{ nextcloud_db_volume }}-volume'
- '{{ nextcloud_redis_volume }}-volume'
notify:
- 'Restart nextcloud-app container'
# - 'Restart nextcloud-cron container'
- 'Restart nextcloud-db container'
- 'Restart nextcloud-redis container'
- name: 'Restart nextcloud-db image'
become: true
ansible.builtin.service:
name: 'nextcloud-db-image'
state: 'restarted'
notify:
- 'Restart nextcloud-db container'
- name: 'Restart nextcloud-redis image'
become: true
ansible.builtin.service:
name: 'nextcloud-redis-image'
state: 'restarted'
notify:
- 'Restart nextcloud-redis container'
- name: 'Restart nextcloud-app image'
become: true
ansible.builtin.service:
name: 'nextcloud-app-image'
state: 'restarted'
notify:
- 'Restart nextcloud-app container'
# - 'Restart nextcloud-cron container'
- name: 'Restart nextcloud-db container'
become: true
ansible.builtin.service:
name: '{{ nextcloud_db_container_name }}'
state: 'restarted'
notify:
- 'Restart nextcloud-app container'
# - 'Restart nextcloud-cron container'
- name: 'Restart nextcloud-redis container'
become: true
ansible.builtin.service:
name: '{{ nextcloud_redis_container_name }}'
state: 'restarted'
notify:
- 'Restart nextcloud-app container'
# - 'Restart nextcloud-cron container'
- name: 'Restart nextcloud-app container'
become: true
ansible.builtin.service:
name: '{{ nextcloud_app_container_name }}'
state: 'restarted'
# - name: 'Restart nextcloud-cron container'
# become: true
# ansible.builtin.service:
# name: '{{ nextcloud_cron_container_name }}'
# state: 'restarted'