From 30fb8e5583f2fb86c632319a863c39e08fdddede Mon Sep 17 00:00:00 2001
From: "ak@geant.org" <ak@geant.org>
Date: Fri, 20 Oct 2023 12:16:26 +0100
Subject: [PATCH] fixed literal comparison

---
 geant/ops_ansible/roles/cic_generic/tasks/test_template.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geant/ops_ansible/roles/cic_generic/tasks/test_template.yaml b/geant/ops_ansible/roles/cic_generic/tasks/test_template.yaml
index 9fd4d68..ed7f423 100644
--- a/geant/ops_ansible/roles/cic_generic/tasks/test_template.yaml
+++ b/geant/ops_ansible/roles/cic_generic/tasks/test_template.yaml
@@ -16,7 +16,7 @@
 - name: Show DRY diff of "{{ config_object }}"
   ansible.builtin.debug:
     msg: "{{ response }}"
-  when: verb == "test" and dry_run | ansible.builtin.bool and response.changed == true
+  when: verb == "test" and (dry_run | ansible.builtin.bool) and (response.changed | ansible.builtin.bool)
 
 # ### This task will artificially fail if there is config that needs to be added or removed
 # - name: Fail if there are diffs
-- 
GitLab