How to handle host unreachable error in a playbook

Hi Ansible Experts,
We would need to check the fail-over check of remote servers in the beginning of the play and delegate them during the play execution when its reachable.

`