Hi,
I am trying to use ansible for configuration management on JUNOS devices. Getting below error and need help in resolving.
ansible-playbook 2.5.4
config file = /etc/ansible/ansible.cfg
configured module search path = [u’/home/attcloud/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
Using /etc/ansible/ansible.cfg as config file
Parsed /home/attcloud/netconf_PoC/netconfNtp/inventory/dbehosts inventory source with ini plugin
ERROR! Unexpected Exception, this is probably a bug: ‘module’ object has no attribute ‘SSL_ST_INIT’
the full traceback was:
Traceback (most recent call last):
File “/usr/bin/ansible-playbook”, line 118, in
exit_code = cli.run()
File “/usr/lib/python2.7/dist-packages/ansible/cli/playbook.py”, line 122, in run
results = pbex.run()
File “/usr/lib/python2.7/dist-packages/ansible/executor/playbook_executor.py”, line 89, in run
self._tqm.load_callbacks()
File “/usr/lib/python2.7/dist-packages/ansible/executor/task_queue_manager.py”, line 190, in load_callbacks
for callback_plugin in callback_loader.all(class_only=True):
File “/usr/lib/python2.7/dist-packages/ansible/plugins/loader.py”, line 435, in all
module = self._load_module_source(name, path)
File “/usr/lib/python2.7/dist-packages/ansible/plugins/loader.py”, line 345, in _load_module_source
module = imp.load_source(full_name, path, module_file)
File “/usr/lib/python2.7/dist-packages/ansible/plugins/callback/foreman.py”, line 68, in
import requests
File “/usr/lib/python2.7/dist-packages/requests/init.py”, line 53, in
from .packages.urllib3.contrib import pyopenssl
File “/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py”, line 54, in
import OpenSSL.SSL
File “/usr/lib/python2.7/dist-packages/OpenSSL/init.py”, line 8, in
from OpenSSL import rand, crypto, SSL
File “/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py”, line 118, in
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’
I am using an Ubuntu 16.0.4.3 LTS and installing pyOpenSSL package using pip/yum/git clone is not working. Please help me out.
Regards,
Chandra Madduri