Role / Collection issues with Galaxy dependency manager #3531
-
I'm sure I'm missing something obvious, but I'm struggling to get role and collection dependencies installed with the Galaxy dependency manager. I've read and re-read the documentation multiple times, but I still can't get it to work the way I think it should. Bottom line: I can't seem to get Here's what works.
---
dependency:
name: galaxy
driver:
name: docker
# ...
collections:
- name: community.docker
version: ">=1.2.0,<2"
- name: community.general
version: ">=2,<3"
---
- src: geerlingguy.repo-epel
- src: geerlingguy.pip
- src: geerlingguy.docker That seems to match the defaults in the Role code, which sets the default value of However, if I set the value of
or
I also tried paths relative to the top directory of the role:
and
Nothing works. Any suggestions?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It seems you miss the dependency:
name: galaxy
options:
ignore-certs: True
ignore-errors: True
role-file: requirements.yml
requirements-file: collections.yml Besides, For your case, it can be set as below. The relative path of dependency:
name: galaxy
options:
role-file: molecule/default/foo.yml |
Beta Was this translation helpful? Give feedback.
Hi @organicveggie
It seems you miss the
options
, referring to molecule.dependency.ansible_galaxy.AnsibleGalaxyBesides,
molecule
won't merge the requirements with default but just use the one defined independency.options.role-file
For your case, it can be set as below. The relative path of
role-file
is based on the root path of project.