Ansible Ping // How do I know if my host is reachable in Ansible?
Вставка
- Опубліковано 26 жов 2022
- Ansible Ping is a great way to know if your host is reachable in Ansible you can use the ad hoc Ansible ping command to validate you can ssh to the target host
Also referred to as Ansible ping pong
you can also use the ansible.netcommon.net_ping module to validate that you have IP connectivity to the device and actually ping it.
www.rogerperkin.co.uk/
✅ Subscribe to my Channel and get more great tips
ua-cam.com/users/rogerperkin?...
I have about 400 cisco devices... I need to check availability... if I use DEST option I need 400 entries in the yaml file, right? how to do it most efficient?
Hello Roger !
Thank you very much for the video !
What if i have hundreds of devices in my hosts file and wanted to ping all of them to check network connectivity?
In my job network i manage almost 200 cisco routers and switches.
Maybe a loop using jinja or is there an "easier" way?
Best regards!!!
quite funny... I am geting SUCCESS result for hosts that are offline...
how to ping many hosts using this yaml script? shoud dest be all ?