I have a task like below:
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”}
To me sounds strange, All other tasks with root user able to run properly.
any help/ pointer is required.
racke
(Stefan Hornburg)
2
I have a task like below:
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"}
To me sounds strange, All other tasks with root user able to run properly.
any help/ pointer is required.
Please contact support for Ansible Tower. This list is specifically for Ansible, not for Tower or AWX.
Regards
Racke