Repost to fix some grammar error:
Hi guys, I am new to Ansible and playing some basic commands now.
I run the following command against different remote hosts, and found that the results are different :
zhaof@fnz:~/work/tools $ ansible tffxa05l.unix.bla -m ping -u fengnaz1 --ask-pass
SSH password:
tffxa05l.unix.bla | success >> {
“changed”: false,
“ping”: “pong”
}
all good !
However when I run against another remote host, I got :
zhaof@fnz:~/work/tools $ ansible tffxa04z.unix.bla -m ping -u fengnaz1 --ask-pass
SSH password:
tffxa04z.unix.bla | FAILED >> {
“failed”: true,
“msg”: “couldn’t set locale correctly\r\ncouldn’t set locale correctly\r\n/bin/sh: /usr/bin/python: not found\r\nOpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 56: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: mux_client_request_session: master session id: 2\r\nShared connection to tffxa04z.unix.anz closed.\r\n”,
“parsed”: false
}
It seems that the Ansible can not parse the response from tffxa04z . A locale problem ?
Has anyone experienced the similar issue? Can your pls share your insight and solution ?
thanks & regards
Fengnan