1. remote_user is the 'user you log in as' on the remote, mostly used
by ssh and similar connection plugins
2. When using sudo (substitute user do) 'the current user' (normally
remote/login in user) BECOMES the 'substitute user' to run a
command(s), that is what become_user allows you to specify. This is
what normally happens: sudo -u <become_user> <command> (by default
sudo will use `-u root` if you omit -u)
3. That means you did not change to 'user home' aka `~/` or `$HOME`
(also happens when you `cd` without an argument), Ansible, by default,
operates on the "current effective user"'s home to handle permissions,
as you can become users other than root and those normally cannot
write to the  remote/login user's home


-- 
----------
Brian Coca (he/him/they/them)

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7dN4dtBtwJbByeDzptng4Qc42q5hNEP5sibUNN_3cAjgg%40mail.gmail.com.

Reply via email to