Understanding sudo_user

34 views
Skip to first unread message

James Goodhouse

unread,
Apr 15, 2014, 7:18:04 PM4/15/14
to ansible...@googlegroups.com
Hey All,

I'm looking for a quick clarification...

When running a task and setting the sudo_user field, does the user itself have to have sudo access, or is it more like running sudo su {{user}}?

I ask cause I'm trying to login as a user that have sudo privileges, but want to run a command under another user that does not have sudo privileges.

Thanks!

James

Brian Coca

unread,
Apr 15, 2014, 8:43:44 PM4/15/14
to ansible...@googlegroups.com
sudo_user is the user you become with sudo, remote_user is the user you login to the box as and needs to have sudo privileges.​
Reply all
Reply to author
Forward
0 new messages