# host issue

**URL:** <https://forum.ansible.com/t/host-issue/28237>\
**Category:** Ansible Project\
**Created:** [August 2, 2018, 3:15pm UTC](https://forum.ansible.com/t/host-issue/28237 "2018-08-02T15:15:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinod93pop](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@vinod93pop](https://forum.ansible.com/u/vinod93pop)\
**Post date:** [August 2, 2018, 3:15pm UTC](https://forum.ansible.com/t/host-issue/28237/1 "2018-08-02T15:15:07Z")

</div>

HI team,

we have two domain , like google and googlea. in few servers we have a problem to connecting in a and b.i want to run a command if a doesn’t allow me to login it should to go to b and execute. Please help me

---

<div class="post-metadata">

**Author:** ![vinod93pop](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@vinod93pop](https://forum.ansible.com/u/vinod93pop)\
**Post date:** [August 2, 2018, 3:32pm UTC](https://forum.ansible.com/t/host-issue/28237/2 "2018-08-02T15:32:18Z")

</div>

shall I use like in inventory file ?\*\*\*\*.google[a||b].com

---

<div class="post-metadata">

**Author:** ![Ramu](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Ramu](https://forum.ansible.com/u/Ramu)\
**Post date:** [August 2, 2018, 11:39pm UTC](https://forum.ansible.com/t/host-issue/28237/3 "2018-08-02T23:39:02Z")

</div>

Vinod,  
You can rely on the serial param.

```auto
- name: test play
  hosts: webservers
  serial: 1

```

```auto
And track the status in a variable or using local file to decide whether to execute task on the 2nd host or not

```

```auto

```

```auto
Ramu

```

---

<div class="post-metadata">

**Author:** ![vinod93pop](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@vinod93pop](https://forum.ansible.com/u/vinod93pop)\
**Post date:** [August 3, 2018, 3:09am UTC](https://forum.ansible.com/t/host-issue/28237/4 "2018-08-03T03:09:45Z")

</div>

Thanks for your reply. But here we have 1000 servers where I need to run like my command should try to execute in domain A , if domain is not reachable the it should automatically trigger to domain B
