• 请不要在回答技术问题时复制粘贴 AI 生成的内容
JasonLaw
V2EX  ›  程序员

Ansible 出现"Failed to validate the SSL certificate"

  •  
  •   JasonLaw · Oct 17, 2022 · 1330 views
    This topic created in 1317 days ago, the information mentioned may be changed or developed.

    不是特别了解 Ansible ,运行 Ansible get_url module 时出现错误,请问怎么解决?

    fatal: [xxx]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to validate the SSL certificate for xxx:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine or you can install the `urllib3`, `pyopenssl`, `ndg-httpsclient`, and `pyasn1` python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible"}
    
    Supplement 1  ·  Oct 27, 2022
    julyclyde
        1
    julyclyde  
       Oct 17, 2022
    你 get 的网址上的证书是正经证书吗?
    如果是的话,需要更新被控节点上的 ca
    JasonLaw
        3
    JasonLaw  
    OP
       Oct 17, 2022
    julyclyde
        4
    julyclyde  
       Oct 18, 2022
    @JasonLaw 你手头管理的这些已经版本太旧了,建议整体升级
    不仅仅是 ansible 、python 的问题
    JasonLaw
        5
    JasonLaw  
    OP
       Oct 18, 2022
    @julyclyde #4 不是我想升级就升级的😅。公司要求的是稳定性,不会让这么干的,没办法,行业决定了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3340 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 11:08 · PVG 19:08 · LAX 04:08 · JFK 07:08
    ♥ Do have faith in what you're doing.