Ansible become password prompt when running tasks on multiple servers
​
I am working in a lab environment using Ansible to manage multiple Ubuntu servers (3 nodes) over SSH.
When executing tasks that require elevated privileges (using --become), Ansible prompts for a “BECOME password” during the playbook execution. I’m not sure which password I should provide. At first, I thought it was asking for my workstation password (the local machine I am using to run Ansible).
However, after some research, I found that it is actually asking for the password of the remote server.
Is this correct?
In my setup, I have created a separate password for each server.
I am connecting to multiple servers via SSH
Using Ansible ad-hoc commands and playbooks
Running tasks that require root privileges
Ansible requests the become (sudo) password interactively when --ask-become-pass is enabled
I want really someone to explain ....because i search and didn't really get it