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.
For more options, visit https://groups.google.com/d/optout.