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 
fileParsed /home/attcloud/netconf_PoC/netconfNtp/inventory/dbehosts 
inventory source with ini pluginERROR! 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 <module>    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 <module>    import requests  File 
"/usr/lib/python2.7/dist-packages/requests/__init__.py", line 53, in 
<module>    from .packages.urllib3.contrib import pyopenssl  File 
"/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 54, 
in <module>    import OpenSSL.SSL  File 
"/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in 
<module>    from OpenSSL import rand, crypto, SSL  File 
"/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>    
SSL_ST_INIT = _lib.SSL_ST_INITAttributeError: '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


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8bf3236a-58e2-4f74-b4f5-f18cf5eaef14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to