The issue looks you are dealing with cached facts, if you remove the sudo from the play level and set it at the somerole-sudo level (or have previous play/task w/o sudo gather_facts) you'll get the user you expect.
On Tue, Dec 24, 2013 at 11:40 AM, pancho horrillo <[email protected]>wrote: > eems that once a host has run a play with sudo, ansible_user_id > gets 'tainted', and subsequent plays don't refresh its value. > > Is this a bug, or am I missing something? > -- Brian Coca Stultorum infinitus est numerus 0110000101110010011001010110111000100111011101000010000001111001011011110111010100100000011100110110110101100001011100100111010000100001 Pedo mellon a minno -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
