Understanding sudo_user

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

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.​