Sudo syntax help, please.

29 views
Skip to first unread message

Tiglath

unread,
Sep 15, 2014, 3:29:22 PM9/15/14
to ansible...@googlegroups.com

User@server ~/ ansible server2 -i group.ini -m shell -a "cd /tmp/tmp; /usr/bin/tar xf ../data.tar --same-permissions --same-owner" --sudo -K

sudo password:
<takes pwd>
 
sslmioq | FAILED => ssh connection closed waiting for sudo or su password prompt
 
Why? 
 
Thanks

James Cammarata

unread,
Sep 15, 2014, 4:23:46 PM9/15/14
to ansible...@googlegroups.com
Hi, does that user have NOPASSWD set in /etc/sudoers, or is there any other relevant sudo configuration you've setup? This may also be caused by a PAM lookup to a centralized authentication system (ie. LDAP or Active Directory) which is taking a long amount of time to return.

--
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.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1141f7ad-2418-4c96-bad6-091d4cb4ffa7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Toshio Kuratomi

unread,
Sep 15, 2014, 5:02:12 PM9/15/14
to ansible...@googlegroups.com
ansible with basically the same command line arguments works here.  Perhaps it's a problem with how sudo is setup on the remote box.

If you add -vvv to your ansible command line it will output some more information about what it's executing on the remote machine that might help figure out what's going on.

-Toshio

--
Reply all
Reply to author
Forward
0 new messages