我在使用安全ansible-galaxy安装插件时遇到问题。
我已经尝试了三件事情:
ansible-galaxy install sfromm.epel [WARNING]: - sfromm.epel was NOT installed successfully: Could not update files in /etc/ansible/roles/sfromm.epel: [Errno 13] Permission denied: '/etc/ansible/roles/sfromm.epel'
这里没有什么奇怪的,显然我的用户不能写入该文件夹。
$ sudo su root@notebook# ansible-galaxy install sfromm.epel - ... - sfromm.epel was installed successfully
正如你所看到的,我能够以这种方式安装插件。
这里是我不明白发生了什么事。
$ sudo ansible-galaxy install sfromm.epel [WARNING]: - sfromm.epel was NOT installed successfully: The API server (https://galaxy.ansible.com/api/) is not responding, please try again later
sudo curl https://galaxy.ansible.com/api/回复OK。 我不是在代理的背后。
由于API是https这可能是证书问题吗? 我怎么知道从哪里拿来的?
我看到同样的事情 我通过在〜/ .ansible.cfg文件中设置ansible_roles =〜/ .ansible /angular色并安装angular色而不需要使用sudo来解决这个问题。 在大多数情况下,在系统范围内安装它们是否有意义? 不过,它很烦人,并在以前的版本中使用(我正在使用2.1.0.0)。
从2.1.10开始,连接到api服务器并返回了一个通用的“服务器必须closures”的错误消息,屏蔽了错误信息。 这个问题已经在https://github.com/ansible/ansible/issues/16039修复了,截至目前,这是他们的2.2里程碑的一部分(所以推测它将会以合理的2.2版本发布)。
我和你的'使用sudo'部分有相同的问题,这是由于我的用户的主目录(github PR特别指定的地址)中一个糟糕的〜/ .netrc文件造成的。 我能够修复文件并重新运行ansible-galaxy,并正确安装了所需的angular色。
有什么东西导致这个函数在这里引发一个未处理的exception,也许通过代码读取会有所帮助。