In sudoers file I have only (can't change it)
%user ALL=(ALL) NOPASSWD: /bin/su - jboss
How can I sudo to jboss and then run some command?
I tried something like
- become: yes
become_user: "jboss"
raw: "touch test"
or
raw: "sudo su - jboss -c touch test"
but always ended:
Sorry, user is not allowed to execute 'command' as jboss
--
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/45ec7dde-9056-457d-8eb4-1ed67e2f4cd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.