forked from data.coop/ansible
29 lines
730 B
YAML
29 lines
730 B
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: Create Nextcloud volume folders
|
|
file:
|
|
path: "{{ services.nextcloud.volume_folder }}/{{ volume }}"
|
|
state: directory
|
|
loop:
|
|
- app
|
|
- postgres
|
|
loop_control:
|
|
loop_var: volume
|
|
|
|
- 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"
|
|
|
|
- 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
|