Ansible 2 · Ad-hoc commands

Ping all hosts

Test that Ansible can connect to every host in the inventory.

ansible all -i inventory.ini -m ping

Official Ansible 2 documentation

More ad-hoc commands commands

All ad-hoc commands commands · Ansible 2 cheatsheet

Was this page helpful?