Le 22/08/2016 à 09:34, Mona Gopal a écrit :
> Hi,
>
> My ansible playbook works on 6.x and the same fails with the below
> error on 4.x
>
> Error is:
>
> fatal: [172.19.1.239]: FAILED! => {"changed": false, "failed": true,
> "module_stderr": "", "module_stdout": "Traceback (most recent call
> last):\r\n File
> \"/root/.ansible/tmp/ansible-tmp-1471850606.58-237797342898160/setup\",
> line 10, in ?\r\n import subprocess\r\nImportError: No module named
> subprocess\r\n", "msg": "MODULE FAILURE", "parsed": false}
>
>
> *4.x has python2.7 installed on it /usr/local/bin.*
>
>
> Could you please help a way forward
>
>
> Thanks in advance,
>
> Mona G
>
>
>
Verify that you have |subprocess.py on your python2.7 installation...
|
You should also use ansible_python_interpreter in your inventory for
this server (http://docs.ansible.com/ansible/faq.html, How do I handle
python pathing not having a Python 2.X in /usr/bin/python on a remote
machine?)
Regards,
--
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/b9d24083-aee5-71b0-6888-3c25766f2cdf%40lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.