Been banging my head against this since yesterday, hoping someone is able to shed some insight on my issues.
I have a simple role that I’m trying to install java with:
`
Been banging my head against this since yesterday, hoping someone is able to shed some insight on my issues.
I have a simple role that I’m trying to install java with:
`
become_user is the user you sudo to, that should probably not be the
same as remote_user
(or it's a bit of a waste of time).
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
you don't even need become_user: root as that is the default.
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.