Hi All,

Perhaps I don't understand the ansible_user_id variable, but consider the 
following cases:

https://gist.github.com/ramondelafuente/9819526

When you set a single task to sudo:no when the playbook has sudo: yes (or 
the other way around), ansibile_ssh_user has an unexpected value.
The task runs with the proper user.

Is there currently a reliable way to get the actual user that runs a task 
in a variable?

Kind regards,


Ramon de la Fuente
@F_U_E_N_T_E

-- 
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/325a11b8-30c6-46c3-b792-6559b2576209%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to