Published by exdone
Posted on August 08, 2018
File \”/tmp/ansible_PzNRht/ansible_
This is due to Python being unable to import the ssl module. To see the actual error, you will need to log into the server and try to import ssl .
Python<version>
import ssl
File “/usr/local/lib/python2.7/ssl.py”, line 60, in <module>
import _ssl # if we can’t import it, let the error propagate
ImportError: No module named _ssl
in this case can refer to https://www.openkb.org/importerror-no-module-named-_ssl/
quick notes on Ansible
ansible the python 2 yum module is needed for this module
missing the Python yum module – test python -c “import yum”
the Python version is less than 2.7
set the var in the playbook
vars: | |
ansible_python_interpreter: /app/interpreters/python/python-2.7.1/bin/python2.7 |