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

iBGP-update: change ansible_connection selectors (vendor var)

parent e3f5b213
No related branches found
No related tags found
1 merge request!191iBGP-update: change ansible_connection selectors (vendor var)
Pipeline #90298 passed
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
- name: Set back ansible_host to target terminal server - name: Set back ansible_host to target terminal server
ansible.builtin.set_fact: ansible.builtin.set_fact:
ansible_host: "{{ wfo_router.router.router_site.site_ts_address }}" ansible_host: "{{ wfo_router.router.router_site.site_ts_address }}"
ansible_connection: "{{ netconf_access[wfo_router.router.vendor].ansible_connection }}" ansible_connection: "{{ netconf_access[vendor].ansible_connection }}"
when: when:
wfo_router.router.router_access_via_ts is defined and wfo_router.router.router_access_via_ts is defined and
( wfo_router.router.router_access_via_ts | ansible.builtin.bool ) is true ( wfo_router.router.router_access_via_ts | ansible.builtin.bool ) is true
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
- name: Adjust network connection according to the vendor - name: Adjust network connection according to the vendor
ansible.builtin.set_fact: ansible.builtin.set_fact:
ansible_connection: "{{ netconf_access[wfo_router.router.vendor].ansible_connection }}" ansible_connection: "{{ netconf_access[vendor].ansible_connection }}"
ansible_network_os: "{{ netconf_access[wfo_router.router.vendor].ansible_network_os }}" ansible_network_os: "{{ netconf_access[vendor].ansible_network_os }}"
- name: Include compile tasks - name: Include compile tasks
ansible.builtin.include_tasks: compile.yaml ansible.builtin.include_tasks: compile.yaml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment