Ah, nice! That certainly does the trick. Thanks for your help.
David On Friday, 31 July 2015 14:22:06 UTC+1, Brian Coca wrote: > > try: > > hosts: *01:*02:*03 > serial:2 > > On Fri, Jul 31, 2015 at 3:57 AM, David Edmonds <[email protected] > <javascript:>> wrote: > > Hi, > > > > I'm working on a deployment playbook at the moment, for an application > made > > of multiple components running across multiple groups of servers. Most > of > > the servers are load-balanced, so we would like to do rolling upgrades > to > > these servers. > > > > At present, we've set serial to 1. This means we remove each server from > the > > load balancer, upgrade it, and put it back in to the load balancer. What > > we'd like to do is increase the number of servers operated on to one per > > group, as this would allow us to perform rolling upgrades when there are > > dependencies between the applications. > > > > For example: > > > > Given groups > > [web] => "web01", "web02" > > [db] => "db01", "db02" > > > > We'd like to run: > > > > Remove "web01" and "db01" from load balancer > > Upgrade "web01" and "db01" > > Restore "web01" and "db01" to load balancer > > Remove "web02" and "db02" from load balancer > > Upgrade "web02" and "db02" > > Restore "web02" and "db02" to load balancer > > > > Is there something that we can do to permit this in Ansible? > > > > Many thanks, > > > > David Edmonds > > > > -- > > 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/76a1b870-554a-47e1-a923-8edd6d023d71%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/f460cddf-ee5d-46a7-9f42-8cff68874a19%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
