Skip to content
Snippets Groups Projects
Commit 2f86989f authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov Committed by Aleksandr Kurbatov
Browse files

Correct failure if any change is detected

parent 13cbd0db
No related branches found
No related tags found
1 merge request!151use of defaults inside role
...@@ -11,11 +11,6 @@ ...@@ -11,11 +11,6 @@
( dry_run | ansible.builtin.bool ) is true and ( dry_run | ansible.builtin.bool ) is true and
wfo_router.router.vendor == "juniper" 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] - name: Deploy base_config on "{{ inventory_hostname }}" [AND COMMIT][Juniper]
junipernetworks.junos.junos_config: junipernetworks.junos.junos_config:
...@@ -47,8 +42,11 @@ ...@@ -47,8 +42,11 @@
- name: Fail if there is any diff - name: Fail if there is any diff
ansible.builtin.fail: ansible.builtin.fail:
msg: There are diffs!!!! msg: There are diffs!!!!
when: output.diff != "" and is_verification_workfloy == true when: >
output.changed | ansible.builtin.bool
and
is_verification_workflow | ansible.builtin.bool
- name: Validation succeeded - name: Validation succeeded
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment