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

Merge branch 'ibpg_junipernetworks' into 'develop'

ibpg role: rewrote using junipernetowrk collection

See merge request !93
parents 9f42c3df 5f8258d6
No related branches found
No related tags found
1 merge request!93ibpg role: rewrote using junipernetowrk collection
Pipeline #85581 passed
---
- name: Update iBGP mesh ["{{ verb }}"] on "{{ inventory_hostname }}" [CHECK ONLY][Juniper]
juniper_junos_config:
load: 'replace'
junipernetworks.junos.junos_config:
update: 'replace'
src: "/var/tmp/ansible_run_{{ opid }}/{{ verb }}.conf"
format: text
config_mode: "private"
check: true
commit: false
register: response
when: >
( dry_run | ansible.builtin.bool ) is true and
vendor == "juniper"
- name: Show diff for dry run
ansible.builtin.debug:
msg: "{{ response }}"
src_format: text
check_commit: true
diff: true
when: >
( dry_run | ansible.builtin.bool ) is true and
vendor == "juniper"
- name: Update iBGP mesh ["{{ verb }}"] on "{{ inventory_hostname }}" [AND COMMIT][Juniper]
juniper_junos_config:
load: 'replace'
junipernetworks.junos.junos_config:
update: 'replace'
src: "/var/tmp/ansible_run_{{ opid }}/{{ verb }}.conf"
format: text
config_mode: "private"
src_format: text
comment: "{{ commit_comment }}"
register: response
when: >
( dry_run | ansible.builtin.bool ) is false and
vendor == "juniper"
- name: Show diff
ansible.builtin.debug:
msg: "{{ response }}"
diff: true
when: >
( dry_run | ansible.builtin.bool ) is false and
vendor == "juniper"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment