+1 :-)

Think that this scenario will always be a problem for someone adding a user 
to a new group, when belonging to that group is important to for the rest 
of the playbook orchestration. A good approach could be forcing a reconnect 
after using groups with append=yes in the "user" module.

Thanks,
Juan

On Tuesday, 24 February 2015 18:00:00 UTC, Brian Coca wrote:
>
> I'm thinking we should add a feature: 
>
> meta: flush-connections 
>
> to let the play auto expire connection caches for these cases 
>
> On Tue, Feb 24, 2015 at 12:55 PM, Juan Cervera <[email protected] 
> <javascript:>> wrote: 
> > 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] <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/939cbb2b-82f0-475a-a905-cd3712deeca6%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/07f83516-eacd-48d4-9c34-d71cc28ac796%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to