Molecule 4.0.0 not running additional roles #3610
Replies: 5 comments 2 replies
-
The role defined in molecule/<scenario_name>/requirements.yml will be installed in an ephemeral dir which can be found when we run 'molecule test'. Does the 'molecule test' succeed? If another role is required when we run our own role, the another role should be defined in galaxy metadata dependency. But I noticed the dependency is commented in your source code. Reference: https://galaxy.ansible.com/docs/using/installing.html#dependencies Let me know what you think. |
Beta Was this translation helpful? Give feedback.
-
A |
Beta Was this translation helpful? Give feedback.
-
Sorry to introduce any inconvenience. Would you mind providing a minimal-reproducible-example with actual behavior and expected behavior? |
Beta Was this translation helpful? Give feedback.
-
I've created https://github.com/AustinCloudGuru/ansible_role_example that is a pretty empty role that also tries to install my consul role. If you create a virtual environment with the requirements-3.6.1.txt it runs the consul role just fine. If you use the 4.0.0 requirements file, it doesn't do anything and fails the verify. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the late response and any inconvenience introduced. Thanks for your patience. The issue can be reproduced. In shortThere is a conflict between In detailwhat ansible-lint doesBoth $ ls -l /Users/jackzhang/.cache/ansible-compat/0ad53a/roles/austincloudguru.consul
total 0
$ ls -l /Users/jackzhang/.cache/ansible-compat/0ad53a/roles/austincloudguru.vault
total 0 As
molecule matrix test
INFO Test matrix
---
default:
- dependency
- lint
- cleanup
- destroy
- syntax
- create
- prepare
- converge
- idempotence
- side_effect
- verify
- cleanup
- destroy what molecule does
The result of conflictWhen The first path As we know, the order of why does it work in
|
Beta Was this translation helpful? Give feedback.
-
I have a vault role (https://github.com/austincloudguru/ansible-role-vault) and as part of the testing, it first installs my consul role (for the backend). In version 3.6.1, everything works as expected. In 4.0.0, it completely ignores my consul role (although it does download it). It just seems to skip right over it. No errors, no nothing. Any ideas what could be going on? Did I miss something on the new release?
Beta Was this translation helpful? Give feedback.
All reactions