When running Ad-Hoc commands Ansible can allso accept patterns, for example

ansible \* -m ping

This command would ping all hosts in your inventory file that contains at the end of the host or alias.

If you wanted to use all hosts you can use:

ansible all -m ping

You can allso use:

ansible \* -m ping

For more information please visit