Skip to content

Role / Collection issues with Galaxy dependency manager #3531

Answered by zhan9san
organicveggie asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @organicveggie

It seems you miss the options, referring to molecule.dependency.ansible_galaxy.AnsibleGalaxy

dependency:
  name: galaxy
  options:
    ignore-certs: True
    ignore-errors: True
    role-file: requirements.yml
    requirements-file: collections.yml

Besides, molecule won't merge the requirements with default but just use the one defined in dependency.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.

dependency:
  name: galaxy
  options:
    role-file: molecule/default/foo.yml

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@organicveggie
Comment options

Answer selected by organicveggie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants