# Ansible module to test remote server availability

**URL:** <https://forum.ansible.com/t/ansible-module-to-test-remote-server-availability/29387>\
**Category:** Ansible Project\
**Created:** [January 8, 2019, 2:59am UTC](https://forum.ansible.com/t/ansible-module-to-test-remote-server-availability/29387 "2019-01-08T02:59:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saravanan](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Saravanan](https://forum.ansible.com/u/Saravanan)\
**Post date:** [January 8, 2019, 2:59am UTC](https://forum.ansible.com/t/ansible-module-to-test-remote-server-availability/29387/1 "2019-01-08T02:59:10Z")

</div>

Hi Ansible Experts,  
We need to enable failover test between 2 remote hosts in Ansible playbook to run tasks. If host1 down then the host2 should be delegated to run the task. If both are down then playbook should exit with an email reporting remote hosts are down. Can you please suggest right Ansible module to perform this activity?

I have tried using Ansible modules like ping, service\_facts, wait\_for. Looking for suitable Ansible module to accomplish this activity to test the remote server availability?

Regards  
Saravanan
