ansible all -i inventory.ini -m ping

Category: IaC & Automation

ansible all -i inventory.ini -m ping

Ping every host listed in an inventory file

Runs the ping module against every host in inventory.ini, reporting pong for reachable ones. It tests SSH connectivity, Python on the target, and privilege setup, making it the standard first smoke test of an inventory (Ansible's list of hosts). Related: ansible all -m ping -o.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.