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
On Fri, 3 Aug 2018 at 5:09 AM, Ramu <[email protected]> wrote: > 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 > <https://groups.google.com/d/msgid/ansible-project/CAAfqp0WnKTkJmER7DboUw62VtivSqbsDYcOsf%2B07_%2Bv9DsHP1A%40mail.gmail.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/CAJ%2BRxtR7Gi%3DROfP1yTGE06fxBxAmhyXoN9U0QD_6hVxj_auTww%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
