Vinod,
You can rely on the serial param.

- name: test play
  hosts: webservers
  serial: 1

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


Ramu


On Thu, Aug 2, 2018 at 10:32 AM <[email protected]> wrote:

> shall I use like in inventory file ?****.google[a||b].com
>
> On Thursday, August 2, 2018 at 5:15:07 PM UTC+2, [email protected] wrote:
>>
>> 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
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/b5fea70c-80ed-4b45-adf0-20d7c5e9ae0f%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/b5fea70c-80ed-4b45-adf0-20d7c5e9ae0f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAAfqp0WnKTkJmER7DboUw62VtivSqbsDYcOsf%2B07_%2Bv9DsHP1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to