2022-12-29 21:13:31 +00:00
|
|
|
# vim: ft=yaml.ansible
|
2019-01-26 16:54:45 +00:00
|
|
|
---
|
2023-09-30 16:15:27 +00:00
|
|
|
- name: Create Nextcloud volume folders
|
|
|
|
file:
|
|
|
|
path: "{{ services.nextcloud.volume_folder }}/{{ volume }}"
|
|
|
|
state: directory
|
|
|
|
loop:
|
|
|
|
- app
|
|
|
|
- postgres
|
|
|
|
loop_control:
|
|
|
|
loop_var: volume
|
|
|
|
|
2022-08-31 18:10:42 +00:00
|
|
|
- name: upload vhost config for cloud.data.coop
|
2023-07-09 18:27:32 +00:00
|
|
|
copy:
|
2023-07-09 19:08:42 +00:00
|
|
|
src: vhost/nextcloud
|
2022-11-26 08:15:18 +00:00
|
|
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.nextcloud.domain }}"
|
2022-09-02 10:23:19 +00:00
|
|
|
notify: "restart nginx"
|
2022-08-31 18:10:42 +00:00
|
|
|
|
2023-09-30 14:25:06 +00:00
|
|
|
- name: Upload Compose file for Nextcloud
|
|
|
|
template:
|
|
|
|
src: compose-files/nextcloud.yml.j2
|
|
|
|
dest: "{{ services.nextcloud.volume_folder }}/docker-compose.yml"
|
2023-07-09 18:27:32 +00:00
|
|
|
|
2023-09-30 14:25:06 +00:00
|
|
|
- name: Deploy Nextcloud
|
|
|
|
docker_compose:
|
|
|
|
project_src: "{{ services.nextcloud.volume_folder }}"
|
|
|
|
pull: true
|
|
|
|
state: present
|