ansible ping module example Example 1: Ansible ping hosts $ ansible <hostgroup-name> -m ping Example 2: ping madule for ansible ansible all -m ping