Hey Serge, Thanks. I read about limit as well. But does it work with groups of hosts? I saw examples of ips and some conditions.
On Wednesday, 12 August 2015 18:54:00 UTC+5:30, Serge van Ginderachter wrote: > > Right now, your only option is to run that playbook separately, setting > --limit to db1 and db2 respectively. > > I have a similiar use case, where i deploy clusters, and want to serially > run the deploy on each node of the cluster, whilst running all clusters in > parallel. > > So that would be: > - step/task 1 on all the first nodes in parallel > - step/task 2 on all the second nodes in parallel > - ... > > This is currently not possible in ansible up to 1.9. i am wondering if > that could happen with a strategy plugin in v2, but this will probably need > an update to the inventory code, allowing the executor to know about the > concept of a 'clustergroup'. > > > > On 12 August 2015 at 08:13, trupti mali <[email protected] <javascript:>> > 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/d9c0932d-b985-43b5-b76b-d48076e330c5%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/d9c0932d-b985-43b5-b76b-d48076e330c5%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/efac4bc4-3b6b-46a4-ad87-2b7ebfcc0916%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
