Remove docker-rclone-mount

Seems there's some issues where having this attached which makes the duplicati container delete all its RO mounts.
This commit is contained in:
Jake Howard
2020-05-22 21:09:40 +01:00
parent 7fbfbbb699
commit cd255f7ca2
4 changed files with 1 additions and 48 deletions

View File

@ -1,6 +1,3 @@
- name: Include upload variables
include_vars: ../upload/vars/upload.yml
- name: Create duplicati directory
file:
path: /opt/duplicati
@ -19,24 +16,6 @@
register: compose_file
become: true
- name: Install rclone config
template:
src: files/duplicati/rclone.conf
dest: /opt/duplicati/rclone.conf
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
register: rclone_config
become: true
- name: Install rclone mounts
template:
src: files/duplicati/rclone-mounts.txt
dest: /opt/duplicati/rclone-mounts.txt
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
register: rclone_mounts
become: true
- name: Cycle duplicati container
docker_compose:
project_src: /opt/duplicati
@ -44,7 +23,7 @@
remove_orphans: true
remove_volumes: true
state: "{{ item }}"
when: compose_file.changed or rclone_config.changed or rclone_mounts.changed
when: compose_file.changed
loop:
- absent
- present