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

Change ansible_connection in base_config_checks

parent 92394810
No related branches found
No related tags found
1 merge request!189Fix/ansible connection private config
...@@ -6,19 +6,14 @@ ...@@ -6,19 +6,14 @@
when: when:
( wfo_router.router.router_access_via_ts | ansible.builtin.bool ) is true ( wfo_router.router.router_access_via_ts | ansible.builtin.bool ) is true
- name: Set variable to connect to nokia - name: Import variables from 'all'
ansible.legacy.set_fact: ansible.builtin.include_vars:
ansible_network_os: nokia.sros.md dir: /opt/ansible_inventory/group_vars/all
ansible_connection: netconf
when:
wfo_router.router.vendor == "nokia"
- name: Set variables for connecting to Junos - name: Set variable to connect to nokia
ansible.legacy.set_fact: ansible.builtin.set_fact:
ansible_network_os: junos ansible_connection: "{{ netconf_access[wfo_router.router.vendor].ansible_connection }}"
ansible_connection: netconf ansible_network_os: "{{ netconf_access[wfo_router.router.vendor].ansible_network_os }}"
when:
wfo_router.router.vendor == "juniper"
- name: Execute post-check command [NOKIA] - name: Execute post-check command [NOKIA]
when: when:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment