# host A unreachable so Host B is target ?

**URL:** <https://forum.ansible.com/t/host-a-unreachable-so-host-b-is-target/28807>\
**Category:** Ansible Project\
**Created:** [October 17, 2018, 11:23am UTC](https://forum.ansible.com/t/host-a-unreachable-so-host-b-is-target/28807 "2018-10-17T11:23:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maryam\_da](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@maryam\_da](https://forum.ansible.com/u/maryam_da)\
**Post date:** [October 17, 2018, 11:23am UTC](https://forum.ansible.com/t/host-a-unreachable-so-host-b-is-target/28807/1 "2018-10-17T11:23:15Z")

</div>

hi  
i have two hosts and i need to run my playbook only on one of them. i.e host A is always the target, unless it is not reachable. in this case, host B will be the target.  
but the point is that if host A is reachable , playbook should’t work on host B.  
any advice is accepted.  
thanks
