Thanks Brian, That's a way, there were two other ways I could do that: a) Wait for 60s after adding the users to the group, so the connections would time out and the rest of the plays would work as expected b) Use sudo for the tasks that required the user docker
In the end I decided to go for a), the wait is a bit of annoying but worth the effort as it avoids possible undesirable side effects with sudo. I guess I could always combine the wait with a reduced control persist too to reduce the wait period. A shame that Ansible doesn't cater for this situation out of the box. Thanks, Juan On Monday, 23 February 2015 23:35:37 UTC, Brian Coca wrote: > > you might want to disable control master/persist for this as it does > reuse the ssh connection. > > -- > 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/939cbb2b-82f0-475a-a905-cd3712deeca6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
