在我运行 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
如何解决此错误消息?
收到一只叮咚
相关分类