Ok. Thank you for the tip. I set "forks=1" in the config file and that seems to have contained the problem. Runs a bit slower though.
On Friday, August 26, 2016 at 2:53:28 PM UTC-4, Kai Stian Olstad wrote: > > On 24. aug. 2016 23:23, Soren Olegnowicz wrote: > > So I have a task that delegates a template deployed to one server to a > > different server. When this task is run on just a single server I get no > > errors. However if I try running this delegation task on all the servers > > (16 servers) it needs to be deployed to in a single play, then it will > only > > succeed on only 50%-80% of the servers. The servers that it fails on are > > random every time I run the play (in dry mode). > > Ansible default to running all task on all host before moving to the > next task. Forks is default to 5, so this template will have 5 > simultaneous runs on the delegate_to host. > So if the template is changing the same file they will interfere with > each other. > > -- > Kai Stian Olstad > -- 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/1dd8414f-c3dd-4fcf-b81d-dcb408ce6c0f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
