I'm confused what you want to do when you use a second user. If you want 
fallback users, I don't know of a simple built in way but have gotten it to 
work looping user/pass /key combos with gather facts or a shell "sudo -l" 
command and register. Then loop through your registered var with set_facts and 
it's possible to set for each host the first successful credential set that 
worked before continuing the play.

If you want different tasks to be run with different users you can use become 
and become_user.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8bc9d204-e6be-4a84-893c-4960f519bcea%40googlegroups.com.

Reply via email to