I have a local_action using the lineinfile module to modify a single file on Ansible control server on behalf of each host in the inventory active for the current play, using information obtained from an earlier task in the play. The problem is the task gets run in parallel for each host, and they end up stomping on each other's changes.
Is there some way to prevent parallel execution for just one task, or to apply some sort of synchronization to the task? -- 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/678faa4f-aa7f-4dd4-be56-6560af94c382%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
