ah, sorry about that. You would have to use sudo on the task and become on 
the overall play. You can not user both "side by side".
But you are right, you can and should achieve that without the old sudo 
stuff, I only suggested that because it works for me right now.
Now, I went back and tried to achieve the same thing using only the become 
params (ssh into other machine, su to another user and execute sudo 
commands as this user).
unfortunately I was not able to achieve this. The only way was to specify 
the use of sudo as part of a command/shell/raw command. but not as a 
parameter to a task :-/
It seems that ansible expects the remote user to have all the sudo rights 
or directly su to a user having the proper rights.

-- 
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/9d9d89ba-6136-4e7c-9c00-b0d77cf88ecb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to