Sudo su -

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 ?

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

Are you doing become: yes become_user: root?