ansible playbook become-method not working

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

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.