Hi,

Could you try this, before you want the task done with dzdo previleges.

become: yes
become_method: dzdo

On Fri, 7 Feb, 2020, 4:15 PM Poemy, <[email protected]> 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?
>
> --
> 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/41a24067-fa62-4224-b3aa-41b6070bccdc%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/41a24067-fa62-4224-b3aa-41b6070bccdc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAJWgDiZYhJTaT-0PEQH7QXJWRxRCUmEHsLe5dPP5EkMy98Rs5A%40mail.gmail.com.

Reply via email to