On Fri, Feb 7, 2020, at 5:45 AM, Poemy wrote: > I have an ansible playblook running some tasks for my user, which I log > in through ssh. > > The user has root privileges by running following command in the terminal: > ` > dzdo su - > ` > > It's actually the only way (no sudo, no root password) to get root access. > > Now, what I want to do is to switch my user to root at a certain point > in my ansible-playbook, using this *dzdo su -* behavior. > > How to do this? >
Use become_method=dzdo If they literally require you to type "dzdo su -", then you should talk to your security folks to get a saner policy. (There's likely hacks that can be done, but "hacks") V/r, James Cassell -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/31470180-4452-4920-b29a-eb82f4b6215c%40www.fastmail.com.
