ansible-role-docker_nextcloud/tasks/main.yml

20 lines
435 B
YAML

- name: docker directory
file:
path: /opt/{{ docker_nextcloud_service_id }}/
state: directory
- name: prepare docker-compose.yml
template:
src: "{{ item }}"
dest: /opt/{{ docker_nextcloud_service_id }}/
with_items:
- docker-compose.yml
- php.ini
notify: docker-compose-up
- name: prepare crontab
template:
src: "nextcloud_cron"
dest: /etc/cron.d/{{ docker_nextcloud_service_id }}_cron