ping madule for ansible
ansible all -m ping
Here is what the above code is Doing:
1. We’re using the ansible command to run a module.
2. We’re using the all argument to tell ansible to run the module on all hosts in our inventory.
3. We’re using the ping module to test our connection to the hosts.