Thanks ,

Is this applicable on RHEL5 machines as well ?

Thanks
Niraj

On Thursday, July 14, 2016 at 10:20:57 PM UTC+5:30, niraj pandey wrote:
>
> Hi,
>
> I have just started to learn Ansible and facing some issue while executing 
> a simple ping command:
>
> ansible webserver -m ping
>
> wllog | FAILED! => {
>     "changed": false,
>     "failed": true,
>     "module_stderr": "",
>     "module_stdout": "Traceback (most recent call last):\r\n  File 
> \"/home/niraj/.ansible/tmp/ansible-tmp-1468471044.71-226020658252160/ping.py\",
>  
> line 120, in ?\r\n    exitcode = invoke_module(module, zipped_mod, 
> ZIPLOADER_PARAMS)\r\n  File 
> \"/home/niraj/.ansible/tmp/ansible-tmp-1468471044.71-226020658252160/ping.py\",
>  
> line 29, in invoke_module\r\n    (stdout, stderr) = 
> p.communicate(json_params)\r\n  File 
> \"/usr/lib64/python2.4/subprocess.py\", line 1064, in communicate\r\n   
>  bytes_written = os.write(self.stdin.fileno(), input[:512])\r\nOSError: 
> [Errno 32] Broken pipe\r\n",
>     "msg": "MODULE FAILURE",
>     "parsed": false
> }
>
> Little bit googling hints that I need to install simplejason module on the 
> client machine.
>
> Is there any way that ansible use the python from alternate location on 
> client machine to pass information back instead of it's default location 
> (/usr/bin/python).
>
> As I have a python installed centrally and accessible from all the hosts. 
> This python carrying most of the modules. So I want client should use that 
> python to pass information back to ansible.
>
> Thanks
> ~Niraj
>
>

-- 
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/a14d4f71-bd4f-4134-9cbf-c7f772794d04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to