diff --git a/geant/gap_ansible/roles/base_config/tasks/deploy_base_config.yaml b/geant/gap_ansible/roles/base_config/tasks/deploy_base_config.yaml index 1a0b6dc068ee90183c6627546fe2d188395cd50e..cbd919bf21c55aa53ba493d279da2e27fc91e089 100644 --- a/geant/gap_ansible/roles/base_config/tasks/deploy_base_config.yaml +++ b/geant/gap_ansible/roles/base_config/tasks/deploy_base_config.yaml @@ -11,11 +11,6 @@ ( dry_run | ansible.builtin.bool ) is true and wfo_router.router.vendor == "juniper" -- name: Fail if there is any diff - ansible.builtin.fail: - msg: There are diffs!!!! - when: output.diff != "" and is_verification_workfloy == true - - name: Deploy base_config on "{{ inventory_hostname }}" [AND COMMIT][Juniper] junipernetworks.junos.junos_config: @@ -47,8 +42,11 @@ - name: Fail if there is any diff ansible.builtin.fail: - msg: There are diffs!!!! - when: output.diff != "" and is_verification_workfloy == true + msg: There are diffs!!!! + when: > + output.changed | ansible.builtin.bool + and + is_verification_workflow | ansible.builtin.bool - name: Validation succeeded