adc/ansible/roles/nextcloud/tasks/main.yml

19 lines
495 B
YAML
Raw Normal View History

2020-04-28 05:06:32 +00:00
---
- 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/gitea/docker-compose.yml'}
- name: Deploy nextcloud stack
docker_compose:
state: present
project_src: "/home/josiah/apps/nextcloud/"