2021-04-27 01:31:53 +02:00
|
|
|
---
|
|
|
|
- name: Create Nextcloud directory
|
|
|
|
file:
|
|
|
|
path: "{{ nextcloud_folder_name }}"
|
|
|
|
state: directory
|
|
|
|
owner: "{{ base_user_name }}"
|
|
|
|
group: "{{ base_user_name }}"
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: Copy Nextcloud Compose file
|
|
|
|
template:
|
|
|
|
src: docker-compose.yml.j2
|
|
|
|
# Remove .j2 extension
|
|
|
|
dest: "{{ nextcloud_folder_name }}/docker-compose.yml"
|
|
|
|
owner: "{{ base_user_name }}"
|
|
|
|
group: "{{ base_user_name }}"
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- name: Ensure container is up to date
|
|
|
|
community.docker.docker_compose:
|
|
|
|
project_src: "{{ nextcloud_folder_name }}"
|
|
|
|
remove_orphans: yes
|
|
|
|
pull: yes
|
|
|
|
recreate: smart
|
2021-07-23 14:04:42 +02:00
|
|
|
state: absent
|
|
|
|
ignore_errors: yes
|