Im facing “Missing sudo password” error while I run a playbook.
My requirement is that I connect to the target server using “My_user” id and then I want to sudo as " oracle" user in the playbook.
Below is how my inventory file looks like
++++++++++++++++++
<<server_name>> ansible_host=<> ansible_connection=ssh ansible_user=<<My_user>> ansible_ssh_pass=<>
Playbook has
++++++++++
hosts: All
become: yes
become_user: oracle
When i ping the inventory ,I get a success response but when i run the playbook which has to sudo as “oracle” user , it says " “Missing sudo password” though i provide the correct pwd.