In my playbook I have a task that needs to be executed. by specific user who is not a root user.
The same playbook executes fine from command line.
But when executed from tower, it fails with message "{“msg”: “Incorrect su password”}
name: start the service.
shell: “run some command”
become: yes
become_method: sudo
become_user: “usera”
args:
chdir: “/opt/ABC”
And it works fine when I run using command
ansible-playbook playbook.yml
But same when invoked from ansible tower, fails with error:
FAILED! => {“msg”: “Incorrect su password”}