A few solutions: - use serial keyword - copy the play in same playbook, have first one target db1 hosts, 2nd target db2 - make hosts: a parameter you pass from the command line, then call it for db1 and then for db2 hosts.
On Wed, Aug 12, 2015 at 2:13 AM, trupti mali <[email protected]> wrote: > Hi I have a requirement to run the set of rules per group completely in silo > and then consider next group of servers to run the same set of roles. > > e.g. > > my hosts file > > [db1] > 1.2.3.4 > 5.6.7.8 > > [db2] > 11.22.33.44 > 55.66.77.88 > > [groupDB:children] > db1 > db2 > > My playbook - > > - hosts: groupDB > roles: > - step1 > - step2 > > What I want is to run step1, step2 for db1 for once and then run step1,step2 > for db2 ..either parallely or serially - that doesnt matter. > > But in actual what happens is it runs step1 for each of the 4 nodes in > db1,db2 then goes to step2. > > Can you please suggest a solution to this? > > Thx > Trupti > > -- > 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/d9c0932d-b985-43b5-b76b-d48076e330c5%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Brian Coca -- 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/CAJ5XC8naxkX7hQKc6V8Go%3DaEh4KQNA2gyTKybz%2Bp%3DL2mB9ko-Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
