data.coop-ansible/roles/docker/tasks/services/nextcloud.yml

19 lines
526 B
YAML
Raw Normal View History

# vim: ft=yaml.ansible
---
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