Can’t reach a server?

You can also use the “reboot” module and Ansible will wait for the server to come back.