I have the ip’s of all of my switches along with logon info. I’d like to somehow have ansible generate a list of all managed switches containing hostname, model number, and serial number. Is that possible?
These are Cisco switches.
I was able to get the data I needed using this example:
https://docs.ansible.com/ansible/latest/network/user_guide/network_best_practices_2.5.html
I noticed the example I am using does work, but if there is a switch stack, its not returning all the stack’s serial numbers.
Nevermind: