Molecule: Download dependencies

Created on 27 Jul 2016  路  7Comments  路  Source: ansible-community/molecule

Hi,

One of my ansible roles has some dependencies on other roles. So I have to execute ansible-galaxy install -r requirements.yml before running the molecule test the ansible-galaxy command to download the dependencies.

Is it possible to let molecule handle this dependencies downloading?

So if for example we have this in the molecule.yml file:

ansible:
  playbook: playbook.yml
  timeout: 30
  requirement: requirements.yml

Within the converge step it can download the dependencies. If it hasn't a value then this step is ignored.

My 2 cents.

bug

Most helpful comment

Re-opening until documentation is corrected.

All 7 comments

actually, molecule can already do this. Use the requirements_file option instead of requirements. We'll make this known in the documentation.

Thanks! (Didn't know)

Re-opening until documentation is corrected.

@kireledan @dj-wasabi
Specifying requirements_file and running molecule test does not get along.
It tries to check the syntax on playbook with roles not yet installed.
see this travis log for example

Ahh yes that would cause some issues. Perhaps moving the dependency to syntax check would be the solution then.

Ahh yes that would cause some issues. Perhaps moving the dependency to syntax check would be the solution then.

What do you mean?

Closing in favor of #332 which has more details.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

r0ckyte picture r0ckyte  路  5Comments

tadeboro picture tadeboro  路  4Comments

surfer190 picture surfer190  路  3Comments

Lirt picture Lirt  路  3Comments

ssbarnea picture ssbarnea  路  4Comments