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 ed7f42373cc9b1993c205b0cbae8e561bf60d6b7..02a37a1995385b5716a5ff42ea742e5515ed8ba6 100644
--- a/geant/ops_ansible/roles/cic_generic/tasks/test_template.yaml
+++ b/geant/ops_ansible/roles/cic_generic/tasks/test_template.yaml
@@ -9,7 +9,7 @@
     check: true
     commit: false
   register: response
-  when: verb == "test" and dry_run | ansible.builtin.bool
+  when: verb == "test" and (dry_run | ansible.builtin.bool)
 
 ### This task never fails. It only shows differences if ther are any
 ### but commit-check in the previous task should succeed