diff --git a/tasks/main.yml b/tasks/main.yml index 486a0fd..8629338 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -56,7 +56,8 @@ export RESTIC_PASSWORD={{ restic_password }} restic backup /home/andreas --exclude-file=/etc/restic/excludes.txt - when: docker_skip_project is defined or "'docker' not in group_names" + when: (docker_skip_project is defined and "'docker' in group_names") or + ("'docker' not in group_names") - name: "Create the restic config dir" file: