You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
adc/ansible/roles/nextcloud/tasks/main.yml

29 lines
734 B

---
- name: Ensure the apps/nextcloud directory exists
file: state=directory path=/home/josiah/apps/nextcloud/ owner=josiah group=josiah mode=0700
- name: copy over nextcloud config files
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0777
with_items:
- {src: 'nextcloud-compose.yml', dest: '/home/josiah/apps/nextcloud/docker-compose.yml'}
- name: Deploy nextcloud db only
docker_compose:
state: present
services: db
project_src: "/home/josiah/apps/nextcloud/"
- name: Wait for the fucking idiot DB to actually initialize.
pause:
seconds: 60
- name: Deploy the rest of nextcloud.
docker_compose:
state: present
project_src: "/home/josiah/apps/nextcloud/"