使用分子2.19.0测试它的一个不可测的角色。分子和非分子都是按需要工作的。
我有一个关于分子是如何执行不可测作用的问题。
这是我的文件结构:
| my_role (Root of the role)
* defaults
* files
* molecule
* default
* tests
- molecule.yml
- playbook.yml
- Dockerfile.j2
- tests
* tasks
* templates现在,在playbook.yml of 中,我设置了角色名称:
---
- name: Converge
hosts: all
roles:
- role: my_role当运行molecule test或molecule converge时,它将运行角色(如预期的那样)。
但是在罩下是如何分子的呢?它是如何知道这个特定用例中根目录中的角色的。
https://stackoverflow.com/questions/55243571
复制相似问题