On 22. aug. 2016 09:34, Mona Gopal wrote:
My ansible playbook works on 6.x and the same fails with the below error on 4.xError 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.*
Ansible expect Python to be at /usr/bin/python if it's not you need to set ansible_python_interpreter.
https://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 -- Kai Stian Olstad -- 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/14ab9762-6886-28a9-4713-7c43df7103e2%40olstad.com. For more options, visit https://groups.google.com/d/optout.
