【发布时间】:2019-12-07 17:08:09
【问题描述】:
通知 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 支持这种格式。
【问题讨论】:
-
我正要告诉你有一个 open ticket on the subject on github... 直到我发现你是作者 ;) 顺便说一句,干得好。这可能仍然有利于其他可以点赞该问题的读者。
-
感谢您提醒我需要更新堆栈交换用户名!