diff --git a/geant/gap_ansible/roles/ibgp_update/tasks/deploy.yaml b/geant/gap_ansible/roles/ibgp_update/tasks/deploy.yaml index 6bd85804a8f9dfc61e57d1cf16f7c700755d56f7..f187be95ed1920b8d94120a336c2ca7106ee5218 100644 --- a/geant/gap_ansible/roles/ibgp_update/tasks/deploy.yaml +++ b/geant/gap_ansible/roles/ibgp_update/tasks/deploy.yaml @@ -1,38 +1,22 @@ +--- - 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"