如何在mac中安装Juniper.junos ansible-galaxy?

时间:2018-03-29 12:32:42

标签: automation ansible ansible-galaxy juniper pyez

我尝试在Mac上安装最新版本的Juniper.junos:

sudo ansible-galaxy install Juniper.junos

   -downloading role 'junos', owned by Juniper

   -downloading role from https://github.com/Juniper/ansible-junos-stdlib/archive/2.0.2.tar.gz

[ERROR]: failed to download the file: Failed to validate the SSL certificate for github.com:443. Make sure your managedsystems have a valid CA certificate installed. 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/ansible, /usr/local/etc/openssl. The exception msg was: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590).

[WARNING]: - Juniper.junos was NOT installed successfully.

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

ansible-galaxy --version ansible-galaxy 2.5.0

我已尝试使用不同的ansible版本,但错误仍然相同。

1 个答案:

答案 0 :(得分:1)

我们有时会面临这个问题,通过ansible-galaxy安装模块的连接问题,与Juniper ansible模块无关。

请使用以下命令进行安装,它会很好用。

first