在我运行 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如何解决此错误消息?
1 回答
收到一只叮咚
TA贡献1821条经验 获得超4个赞
我已经卸载了这两个 python 模块并重新安装,它现在可以工作了。
sudo yum remove pyOpenSSL
sudo pip uninstall requests-credssp
sudo pip install requests-credssp
谢谢 SR
添加回答
举报
0/150
提交
取消