final fix

This commit is contained in:
Andreas Zweili 2021-11-15 19:20:37 +01:00
parent 3b1644013f
commit 32c117c75f
1 changed files with 2 additions and 3 deletions

View File

@ -41,7 +41,7 @@
sudo docker-compose unpause
when:
- "'docker' in group_names"
- docker_project_name
- docker_project_name is defined
- name: "Copy the backup script"
blockinfile:
@ -56,8 +56,7 @@
export RESTIC_PASSWORD={{ restic_password }}
restic backup /home/andreas --exclude-file=/etc/restic/excludes.txt
when: (docker_project_name is undefined and "'docker' in group_names") or
("'docker' not in group_names")
when: docker_project_name is undefined
- name: "Create the restic config dir"
file: