Closed tknerr closed 8 years ago
Duplicate of #288.
Workaround is to manually put the syntax
check after the converge
step:
molecule:
test:
sequence: [ destroy, create, converge, syntax, idempotence, verify ]
Maybe you can even add this to ~/.config/molecule/config.yml
globally in the meantime (thanks @kireledan)
quick confirmation that putting it into ~/.config/molecule/config.yml
works as expected, ie. you don't have to repeat it in every project's molecule.yml
maybe a separate command / step for dependencies
vs converge
would be the proper solution though, e.g. sequence: [ destroy, dependencies, syntax, create, converge, idempotence, verify ]
as the default
molecule: test: sequence: [ destroy, create, converge, syntax, idempotence, verify ]
The only problem with modifying the sequence, we end up converging before we run the syntax check. That makes the syntax check moot.
Oh right, it's only syntax. Thought of it more like linting, which would be late, but still useful... So makes no sense to do it after converge, so I will just skip it completely in my workaround
Resolved with #340.
Using a
requirements.yml
like that:With this
molecule.yml
:When I run
molecule test
, it fails because it can not find the "timezone" dependency role:Imho it should first resolve the dependecies via
ansible-galaxy
, then check the playbook syntax.