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 On Mon, Sep 15, 2014 at 12:29 PM, Tiglath <[email protected]> wrote: > 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 > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/1141f7ad-2418-4c96-bad6-091d4cb4ffa7%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/1141f7ad-2418-4c96-bad6-091d4cb4ffa7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAG9juEo%3DmSZhj4-gdL6CheRmBnbLtCk79hwoER8vZ2HEgSSyWw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
