I am also facing the same issue. tried several options but no solution.
Unable to take privilege of "sudo su -".
This is content of my playbook. Commented ones shows that I have tried
those options. I have also tried many options with command lines.
---
- hosts: all
# remote_user: root
#
you don't even need become_user: root as that is the default.
--
Brian Coca
--
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
To install packages you need to be root. So set become_user to root. Now
you need to give ansible your sudo password via "-K". You dont need the
become_method or become_flags
Am Mittwoch, 28. Juni 2017 10:49:28 UTC+2 schrieb lask001:
>
> Been banging my head against this since yesterday, hoping