# ansible playbook become-method not working

**URL:** <https://forum.ansible.com/t/ansible-playbook-become-method-not-working/27277>\
**Category:** Ansible Project\
**Created:** [April 14, 2018, 7:25am UTC](https://forum.ansible.com/t/ansible-playbook-become-method-not-working/27277 "2018-04-14T07:25:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benny\_Kusman](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Benny\_Kusman](https://forum.ansible.com/u/Benny_Kusman)\
**Post date:** [April 14, 2018, 7:25am UTC](https://forum.ansible.com/t/ansible-playbook-become-method-not-working/27277/1 "2018-04-14T07:25:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [May 5, 2018, 12:02am UTC](https://forum.ansible.com/t/ansible-playbook-become-method-not-working/27277/2 "2018-05-05T00:02:10Z")

</div>

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.
