From 0a0602226e1da2d2b2c1d530fafb1c63169ebe99 Mon Sep 17 00:00:00 2001 From: Aleksandr Kurbatov <ak@geant.org> Date: Mon, 11 Nov 2024 10:43:33 +0000 Subject: [PATCH] `ansible_connection` in `promote_p_to_pe` --- .../roles/promote_p_to_pe/tasks/check_routing_instances.yaml | 4 ++-- geant/gap_ansible/roles/promote_p_to_pe/tasks/compile.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/geant/gap_ansible/roles/promote_p_to_pe/tasks/check_routing_instances.yaml b/geant/gap_ansible/roles/promote_p_to_pe/tasks/check_routing_instances.yaml index 653d21d0..37c5a89e 100644 --- a/geant/gap_ansible/roles/promote_p_to_pe/tasks/check_routing_instances.yaml +++ b/geant/gap_ansible/roles/promote_p_to_pe/tasks/check_routing_instances.yaml @@ -1,7 +1,7 @@ - name: Set variable to connect to nokia ansible.builtin.set_fact: - ansible_network_os: nokia.sros.md - ansible_connection: netconf + ansible_connection: "{{ netconf_access[subscription.router.vendor].ansible_connection }}" + ansible_network_os: "{{ netconf_access[subscription.router.vendor].ansible_network_os }}" - name: Check VPRN BGP summary block: diff --git a/geant/gap_ansible/roles/promote_p_to_pe/tasks/compile.yaml b/geant/gap_ansible/roles/promote_p_to_pe/tasks/compile.yaml index 46a463d1..995efd31 100644 --- a/geant/gap_ansible/roles/promote_p_to_pe/tasks/compile.yaml +++ b/geant/gap_ansible/roles/promote_p_to_pe/tasks/compile.yaml @@ -59,4 +59,4 @@ subscription.router.router_access_via_ts | ansible.builtin.bool ansible.builtin.set_fact: ansible_host: "{{ subscription.router.router_site.site_ts_address }}" - ansible_connection: netconf + ansible_connection: "{{ netconf_access[subscription.router.vendor].ansible_connection }}" -- GitLab