On 07.04.2019 05:09, Lucas Possamai wrote:
It is definitely a Python problem than Ansible.
[root@db2 ~]# /usr/bin/python -c 'import sys; print sys.path;
import purestorage'
['', '/usr/lib64/python26.zip', '/usr/lib64/python2.6',
'/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk',
'/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload',
'/usr/lib64/python2.6/site-packages',
'/usr/lib64/python2.6/site-packages/gtk-2.0',
'/usr/lib/python2.6/site-packages']
Traceback (most recent call last):
File "<string>", line 2, in <module>
ImportError: No module named purestorage
Thanks for your help. Will try to get this python issue fixed.
Looks like you have Python 2.6 and 2.7 installed and that
/usr/bin/python is 2.6 but purestorage is installed in 2.7.
To make Ansible use another Python than /usr/bin/python check out
ansible_python_interpreter
https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-handle-python-not-having-a-python-interpreter-at-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/85f8d3523d11b4ab0751ffa28ac548e8%40olstad.com.
For more options, visit https://groups.google.com/d/optout.