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