From d1c5da9f31b62e72ea66cc9a2b8bd543d6404e13 Mon Sep 17 00:00:00 2001 From: Matthias Leutenegger Date: Thu, 15 Aug 2019 10:00:45 +0200 Subject: [PATCH] do not compare to literal True/False --- tasks/configure.yml | 2 +- tasks/distribution/Linux.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 9e6fbce..1b67585 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -13,4 +13,4 @@ loop: "{{ restic_repos|dict2items }}" when: - item.value.init is defined - - item.value.init == true + - item.value.init diff --git a/tasks/distribution/Linux.yml b/tasks/distribution/Linux.yml index f4a58d3..451a015 100644 --- a/tasks/distribution/Linux.yml +++ b/tasks/distribution/Linux.yml @@ -13,5 +13,5 @@ when: - item.name is defined - item.src is defined or item.stdin is defined - - item.src is defined or item.stdin == true and item.stdin_cmd is defined + - item.src is defined or item.stdin and item.stdin_cmd is defined - item.repo in restic_repos