ansible how to check if servers are alive code example Example: Ansible ping hosts $ ansible <hostgroup-name> -m ping