Skip to content
Snippets Groups Projects
Commit 13cbd0db authored by Simone Spinelli's avatar Simone Spinelli Committed by Aleksandr Kurbatov
Browse files

Update file deploy_base_config.yaml

parent 4d544fc0
No related branches found
No related tags found
1 merge request!151use of defaults inside role
...@@ -5,11 +5,17 @@ ...@@ -5,11 +5,17 @@
src_format: text src_format: text
check_commit: true check_commit: true
diff: true diff: true
register: output
when: > when: >
verb == "deploy" and verb == "deploy" and
( 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:
...@@ -32,12 +38,19 @@ ...@@ -32,12 +38,19 @@
commit: true commit: true
validate: true validate: true
diff: true diff: true
register: output
check_mode: true check_mode: true
when: > when: >
verb == "deploy" and verb == "deploy" and
( dry_run | ansible.builtin.bool ) is true and ( dry_run | ansible.builtin.bool ) is true and
wfo_router.router.vendor == "nokia" wfo_router.router.vendor == "nokia"
- name: Fail if there is any diff
ansible.builtin.fail:
msg: There are diffs!!!!
when: output.diff != "" and is_verification_workfloy == true
- name: Validation succeeded - name: Validation succeeded
ansible.builtin.debug: ansible.builtin.debug:
msg: "Base config has been validated against the router and no syntax errors were found" msg: "Base config has been validated against the router and no syntax errors were found"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment