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.
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.
Most helpful comment
Re-opening until documentation is corrected.