ansible/roles/docker/tasks/services/nextcloud.yml

29 lines
730 B
YAML
Raw Normal View History

# vim: ft=yaml.ansible
---
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
copy:
src: vhost/nextcloud
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.nextcloud.domain }}"
notify: "restart nginx"
2022-08-31 18:10:42 +00:00
- name: Upload Compose file for Nextcloud
template:
src: compose-files/nextcloud.yml.j2
dest: "{{ services.nextcloud.volume_folder }}/docker-compose.yml"
- name: Deploy Nextcloud
docker_compose:
project_src: "{{ services.nextcloud.volume_folder }}"
pull: true
state: present