Sudo su -

15 views
Skip to first unread message

Suresh R

unread,
Mar 3, 2020, 2:06:37 PM3/3/20
to Ansible Development
In my environment we needed to execute the command " sudo su - " to become a root.

I did tried something with the become method but nothing got worked.

Do we have working setup for this scenario ?

James Cassell

unread,
Mar 3, 2020, 3:18:07 PM3/3/20
to Ansible Development List
Tell your security folks to give you a saner config. There are ways to hack around it, but they are hacks.

You could write a become plugin for it, but I wouldn't.

V/r,
James Cassell

Tj Grund

unread,
Mar 3, 2020, 3:34:12 PM3/3/20
to Suresh R, Ansible Development
Are you doing become: yes become_user: root?


--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/ee8fda3e-bacc-49c9-a8cc-301e0257999a%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages