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 9fd4d68e6a2fdee9df9fd6868f6bf2f3e3adac57..ed7f42373cc9b1993c205b0cbae8e561bf60d6b7 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