add nextcloud stack
This commit is contained in:
parent
c56840a1ba
commit
8611f928ad
4 changed files with 73 additions and 0 deletions
15
ansible/roles/nextcloud/tasks/main.yml
Normal file
15
ansible/roles/nextcloud/tasks/main.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
- name: Create working directory
|
||||
file:
|
||||
path: /srv/nextcloud
|
||||
state: directory
|
||||
|
||||
- name: Copy Docker stack file
|
||||
copy:
|
||||
src: "{{ role_path }}/docker-stack.yml"
|
||||
dest: /srv/nextcloud/docker-stack.yml
|
||||
|
||||
- name: Deploy Docker stack
|
||||
docker_stack:
|
||||
name: nextcloud
|
||||
compose:
|
||||
- /srv/nextcloud/docker-stack.yml
|
Reference in a new issue