From 30d9978e5013fdc50db857f71e2934973f77d571 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 15 Nov 2021 18:54:20 +0100 Subject: [PATCH] the conditionals are still wrong --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: