Incorrect Sudo Password - For Ansible Remote Host Jobs

122 views
Skip to first unread message

Kalyan Alamuru

unread,
Aug 16, 2019, 5:19:40 AM8/16/19
to Ansible Project
I'm running Job through Job Template which have three tasks i.e. Gather Facts on One Local Host(Where Tower is running and Job is Initiated from) and two other remote hosts, For which connectivity is working as I've tested in stand alone mode.  I've created localadmin credential in tower and user in server and created Private/Public Key Pair and uploaded to remote servers and able to connect successfully connect from Tower Host to Remote Servers using local admin. 
My Remote  Job started through Tower is failing with Incorrect Sudo Password. I can swtich  to root from my localadmin user without any issues. But Job is failing with this Error, Do you've any idea why it is failing.

This is the error message : <consumer-aws-web1.cloud.infra.buzz> SSH: EXEC sshpass -d8 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'User="localadmin"' -o ConnectTimeout=10 -o ControlPath=/tmp/awx_212_rfk_vgn0/cp/86ff2d5cd2 -tt consumer-aws-web1.cloud.infra.buzz '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=qfprhujkykgyaciifxxcmafrkzbzybiq] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-qfprhujkykgyaciifxxcmafrkzbzybiq ; /usr/bin/python /home/localadmin/.ansible/tmp/ansible-tmp-1565945826.64-195516655885658/AnsiballZ_setup.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
56
 Escalation failed
57
 fatal: [consumer-aws-web1.cloud.infra.buzz]: FAILED! => {
58
     "msg": "Incorrect sudo password"

This Jobs are initiated through Tower Console.  

Thanks in advance

Kai Stian Olstad

unread,
Aug 16, 2019, 5:28:27 AM8/16/19
to ansible...@googlegroups.com
On 16.08.2019 11:19, Kalyan Alamuru wrote:
> I'm running Job through Job Template which have three tasks i.e. Gather
> Facts on One Local Host(Where Tower is running and Job is Initiated
> from)

This is the list for Ansible not Tower, please contact Redhat support
for help with Tower.


--
Kai Stian Olstad

Stefan Hornburg (Racke)

unread,
Aug 16, 2019, 5:29:52 AM8/16/19
to ansible...@googlegroups.com
Sorry, but this mailing list is only for Ansible, not for Tower or AWX. Please contact Tower support.

Regards
Racke

>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/0cd5bb9a-c669-4e49-a49b-82a08b766576%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/0cd5bb9a-c669-4e49-a49b-82a08b766576%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc
Reply all
Reply to author
Forward
0 new messages