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
Branches
Tags
1 merge request!151use of defaults inside role
......@@ -5,11 +5,17 @@
src_format: text
check_commit: true
diff: true
register: output
when: >
verb == "deploy" and
( 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:
......@@ -32,12 +38,19 @@
commit: true
validate: true
diff: true
register: output
check_mode: true
when: >
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is true and
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
ansible.builtin.debug:
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