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")
It’s the only way and there won’t be a change in the process soon, so I need to deal with it.
They provide me a VM with a login, where I only can have root access to login with the command dzdo su - for 1 week to prepare the VM for real usage.
I use this temporary dzdo root access to install sudo for further usage.
To automate this process I need to write an ansible playbook.
And I tried to use become_method=dzdo but this fails during the run of the playbook.
I think because I still need to specify the su - part of it.
It's the only way and there won't be a change in the process soon, so I need to deal with it.
They provide me a VM with a login, where I only can have root access to login with the command *dzdo su -* for 1 week to
prepare the VM for real usage.
I use this temporary dzdo root access to install sudo for further usage.
To automate this process I need to write an ansible playbook.
And I tried to use *become_method=dzdo *but this fails during the run of the playbook.
I think because I still need to specify the *su - *part of it.
You can try
become_flags: 'su -'
And please post the error message if it still fails.