Elevating user to root with Ansible

Solution 1:

become defaults to using sudo (see become_method). So you need to use the user's password as you would provide to sudo, not the root password.

Or you can change the become_method, e.g. to su.