Hrm, looks like there's some garbage in front of the result. Can you open a github issue for this, with details on the target system included?
James Cammarata Director, Ansible Core Engineering github: jimi-c On Tue, Jan 12, 2016 at 7:04 PM, Fed <[email protected]> wrote: > Hi Guys, > I'm having some trouble with the new Ansible 2 when trying to run ping on > a host that works with 1.9.4. > > I'm getting the following: > > $ ansible -i test all -m ping -u root -vvvvv -c paramiko > > Loaded callback minimal of type stdout, v2.0 > <10.10.0.242> ESTABLISH CONNECTION FOR USER: root on PORT 22 TO 10.10.0.242 > <10.10.0.242> EXEC mkdir -p "$( echo > $HOME/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542 )" && echo "$( > echo $HOME/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542 )" > <10.10.0.242> PUT > /var/folders/1d/nqrbvtz120nb7r2rjqzpvs7m0000gn/T/tmpjR2gSS TO > /home/root/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542/ping > <10.10.0.242> EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 > LC_MESSAGES=en_US.UTF-8 /usr/bin/python > /home/root/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542/ping; rm > -rf "/home/root/.ansible/tmp/ansible-tmp-1452643119.18-173252181839542/" > > /dev/null 2>&1 > 10.10.0.242 | FAILED! => { > "changed": false, > "failed": true, > "invocation": { > "module_name": "ping" > }, > "module_stderr": "", > "module_stdout": "\u001b[?1034h{\"invocation\": {\"module_args\": > {\"data\": null}}, \"changed\": false, \"ping\": \"pong\"}\r\n", > "msg": "MODULE FAILURE", > "parsed": false > } > > Previously on 1.9.4 I would get: > > $ ansible -i test all -m ping -u root -vvvvv -c paramiko > <10.10.0.242> ESTABLISH CONNECTION FOR USER: root on PORT 22 TO 10.10.0.242 > <10.10.0.242> REMOTE_MODULE ping > <10.10.0.242> EXEC /bin/sh -c 'mkdir -p > $HOME/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466 && echo > $HOME/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466' > <10.10.0.242> PUT > /var/folders/1d/nqrbvtz120nb7r2rjqzpvs7m0000gn/T/tmpqHPWsg TO > /home/root/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466/ping > <10.10.0.242> EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 > /usr/bin/python > /home/root/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466/ping; rm > -rf /home/root/.ansible/tmp/ansible-tmp-1452643204.88-178243528154466/ > >/dev/null 2>&1' > 10.10.0.242 | success >> { > "changed": false, > "ping": "pong" > } > > Any idea what the culprit might be? At first glance the only real > difference I can see is that the older version had /bin/sh -c in front, but > that could just be a change in logging. > > Cheers > > -- > 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/cb9a3799-739a-4dc0-98b2-af8a351af94d%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/cb9a3799-739a-4dc0-98b2-af8a351af94d%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/CAMFyvFidiQHGtH%3DtwLwtv%3D%2B4o0iBgbLzkCLnWrEYPzhbUKAU1A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
