在需求中指定版本时,ansible-galaxy安装失败

tho*_*nic 3 ansible ansible-galaxy

不确定这是否是一个错误ansible-galaxy,但我正在尝试从requirements.yml文件(相关的ansible文档)安装角色.其中一个角色是从git中提取的,具体version如下:

requirements.yml:

---
- src:  https://github.com/thom-nic/ansible-shell
  name: thom-nic.shell
  version: develop
Run Code Online (Sandbox Code Playgroud)

当我运行时,ansible-galaxy install我得到以下输出:

± ansible-galaxy install -r requirements.yml --force
- executing: git clone https://github.com/thom-nic/ansible-shell thom-nic.shell
- executing: git archive --prefix=thom-nic.shell/ --output=/var/folders/cw/9vh4w77n4vb_bchhsxnglrcm0000gn/T/tmpF4GAqD.tar develop
- command git archive --prefix=thom-nic.shell/ --output=/var/folders/cw/9vh4w77n4vb_bchhsxnglrcm0000gn/T/tmpF4GAqD.tar develop failed
  in directory /var/folders/cw/9vh4w77n4vb_bchhsxnglrcm0000gn/T/tmpIyYaJz
- thom-nic.shell was NOT installed successfully.
Run Code Online (Sandbox Code Playgroud)

如果我改变versionmaster它的工作原理.我已经在git repos中尝试了其他角色,结果相同.

奇怪的是,ansible-galaxy本身似乎没有--version输出,但ansible --version报告v1.8.3.

Lor*_*ein 9

这是一个众所周知的问题.在此期间,作为解决方法,修改requirements.yml中的版本,如下所示:

---
- src:  https://github.com/thom-nic/ansible-shell
  name: thom-nic.shell
  version: remotes/origin/develop
Run Code Online (Sandbox Code Playgroud)