diff --git a/tasks/main.yml b/tasks/main.yml index 12275a7..a4259aa 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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: