Hi,
There are various network modules for iOS,EOS, etc etc…
What I was wondering is there a way to determine a hosts base os type so that the correct network module can be called? I have seen some sites reference ‘ansible_network_os’
like below. However I am not sure is this is simple a variable that has been set manually of something ansible sets when initially connecting to a device?
eos_facts:
when: ansible_network_os == 'eos'
- name: Gather facts (ops)
ios_facts:
when: ansible_network_os == 'ios'
- name: Gather facts (vyos)
vyos_facts: