在运行Ansible 2.7.5的CentOS 7机器上,当我使用winrm连接到windows计算机时,收到下面的消息。
TASK [ping] **********************************************************************************************************************************************************
From cffi callback <function _verify_callback at 0x7f843379e230>:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 313, in wrapper
_lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
From cffi callback <function _verify_callback at 0x7f844a45c6e0>:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 313, in wrapper
_lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
上网查看后,升级了pyOpenSSL包
sudo yum install pyOpenSSL
pyOpenSSL.x86_64 0:0.13.1-4.el7 will be installed
现在我收到这个错误信息。
UNREACHABLE! => {"changed": false, "msg": "credssp: 'module' object has no attribute 'TLSv1_2_METHOD'", "unreachable": true
如何解决此错误消息?
谢谢
锶