我正在尝试通过ansible-galaxy安装一个ansible角色。我运行命令
ansible-galaxy install nickhammond.logrotate并获得响应:
ERROR! The API server (https://galaxy.ansible.com/api/) is not responding, please try again later.我尝试更新我的ansible版本(1.9.1,1.9.2,2.0.1),但似乎没有解决这个问题。我只需在我的web浏览器中转到https://galaxy.ansible.com/api/,就可以到达API服务器。你知道为什么银河系似乎不适合我吗?
发布于 2016-03-22 02:34:28
啊哈!显然,我需要wget才能让ansible-galaxy工作。我使用macports安装了wget,而ansible-galaxy的安装工作非常出色!
发布于 2016-04-12 07:17:35
如果您使用代理,请将环境"https_proxy“设置为"http://ip:port”格式。不是"ip:port“格式。
export https_proxy=http://ip:port发布于 2016-08-18 05:26:17
我也有同样的问题。对我来说,ansible是由pip安装的,我必须先卸载它:
pip uninstall ansible然后我用brew重新安装了它
brew install ansible在这之后,它就像魅力一样发挥作用。
https://stackoverflow.com/questions/36138983
复制相似问题