ansible playbook become-method not working

18 views
Skip to first unread message

Benny Kusman

unread,
Apr 14, 2018, 3:25:43 AM4/14/18
to Ansible Project
Hi,

so i got this playbook with this header:
--- #WEBSERVVER
- hosts: webserver
  user
: ansible
  become
: yes
  become_method
: su



when running the playbook via command:
ansible-playbook -i ../hosts webserver.yml -K
SUDO password: 


Instead of asking for su password, it's somehow asking for sudo password.

i have to overwrite using the following
ansible-playbook -i ../hosts webserver.yml -K --become-method=su
SU password: 




Is this a known bug ?

Thank you

Brian Coca

unread,
May 4, 2018, 8:02:25 PM5/4/18
to Ansible Project
It is the same password, it is just asking for the 'default/current'
become method, you can ignore the display and we have changed it to
the neutral 'become' in recent versions.


--
----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages