+1 I have this problem a lot when I use delegate_to with multiple targets making a request of a single delegate. Lock conflicts cause intermittent failure.
On Tuesday, December 16, 2014 9:41:04 AM UTC-6, Hagai Kariti wrote: > > Hi > I'm running a deployment that consists of different plays, some of which > are already written that I would like to reuse. There's about one one play > for each stage: > > 1) Remove server from cluster > 2) Shut down the server > 3) Provision a new server to replace it > > When running, I need each set of plays to run on one server at a time, so > setting 'serial' on the play level isn't enough. I know I can run another > ansible-playbook instance with the command module, but then I wouldn't see > the progress for each play. I guess I can copy-paste my existing playbooks > and play with delegate_to to achieve what I want, but that feels wrong. > What I'm doing currently is splitting my playbook run to several pieces and > gluing them with bash, looping when necessary on a single playbook. > > It feels like Ansible doesn't support this use case well currently. Is > there a better way to solve that than using bash? Are there features in the > pipeline to help with this case? > > Thanks a lot! > > > -- 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/dc2cc05f-f534-41b6-836e-a6b73cfaa298%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
