黑帽联盟

 找回密码
 会员注册
查看: 1444|回复: 1
打印 上一主题 下一主题

[基础服务] ansible-galaxy安装role报错:Failed to validate the SSL certificate for galaxy

[复制链接]
yun 黑帽联盟官方人员 

920

主题

37

听众

1364

积分

超级版主

Rank: 8Rank: 8

  • TA的每日心情
    奋斗
    2019-10-18 11:20
  • 签到天数: 678 天

    [LV.9]以坛为家II

    具体错误如下:

    [WARNING]: - 安装的角色名称 was NOT installed successfully: Failed to get datafrom the API server (https://galaxy.ansible.com/api/): Failed to validate theSSL certificate for galaxy.ansible.com:443. Make sure your managed systems havea valid CA certificate installed. If the website serving the url uses SNI youneed python >= 2.7.9 on your managed machine  (the python executable used(/usr/bin/python) is version: 2.7.6 (default, Nov 23 2017, 15:49:48) [GCC4.8.4]) or you can install the `urllib3`, `pyOpenSSL`, `ndg-httpsclient`, and`pyasn1` python modules to perform SNI verification in python >= 2.6. You canuse validate_certs=False if you do not need to confirm the servers identity butthis 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. The exception msg was: hostnameu'galaxy.ansible.com' doesn't match either of'*.c1e4.galaxy.openshiftapps.com', 'c1e4.galaxy.openshiftapps.com'.

    ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.

    原因:要求python版本必须是2.7.6,如果不是,可以使用-c选项跳过验证即可,即:ansible-galaxy install 安装的角色名称 -c

    本地截图:
    55.png
    帖子永久地址: 

    黑帽联盟 - 论坛版权1、本主题所有言论和图片纯属会员个人意见,与本论坛立场无关
    2、本站所有主题由该帖子作者发表,该帖子作者与黑帽联盟享有帖子相关版权
    3、其他单位或个人使用、转载或引用本文时必须同时征得该帖子作者和黑帽联盟的同意
    4、帖子作者须承担一切因本文发表而直接或间接导致的民事或刑事法律责任
    5、本帖部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责
    6、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意
    7、黑帽联盟管理员和版主有权不事先通知发贴者而删除本文

    0

    主题

    0

    听众

    17

    积分

    黑帽菜鸟

    Rank: 1

  • TA的每日心情
    奋斗
    2019-7-14 21:04
  • 签到天数: 12 天

    [LV.3]偶尔看看II

    不错,学习了谢谢
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 会员注册

    发布主题 !fastreply! 收藏帖子 返回列表 搜索
    回顶部