3

通知 Molecule 从 Ansible Galaxy 下载角色依赖项

dependency:
  name: galaxy
  options:
    role-file: requirements.yml

但是,似乎没有任何关于如何通知 Molecule 下载 Collections 的文档。https://molecule.readthedocs.io/en/stable/configuration.html#ansible-galaxy没有列出集合选项,我在https://github.com/ansible/molecule上没有看到开放功能请求这个。

在这里询问是否这是 Molecule 已解决的问题,否则我想这将是 Molecule github repo 上的功能请求。我如何通知 Molecule 它需要为 ansible-galaxy 依赖项下载 Collection?

我的requirements.yml文件如下所示:

---

roles:
- src: gantsign.visual-studio-code
- src: artis3n.bitwarden_app

collections:
 - name: artis3n.github

Ansible 在https://docs.ansible.com/ansible/devel/user_guide/collections_using.html#install-multiple-collections-with-a-requirements-file支持此格式。

4

2 回答 2

0

文档现在也涵盖了自#2609以来的集合。但是,如果您查看此拉取请求,您会发现它不应该通过,因为测试失败。8 多天前我无法在主机上获得有效的解决方案,这很有意义;我注意到测试通过后的最后一次合并是 8 天前。

我认为这个最新的合并尚未发布,但我相信有一个解决方法

于 2020-04-14T05:47:28.180 回答
0

我针对 Molecule 提出的问题已经完成,所以这个功能现在在 Molecule 3.0.3 版本中存在。

于 2020-04-15T16:34:00.230 回答