Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
2.19.0, via pip
Right now molecule search for role to test in the parent directory. If molecule tests for role
The key issue is that most ansible roles are stored not under the role name, but with some prefixes - user (galaxy roles), or, in case of github, ansbile-* is a common prefix. It's really strange to have configuration role to be kept in the same directory.
I found a workaround for affected people, but it's dirty.
f.e. for role 'foo' it should be
Ah, I might have re-read this issue in the first place when I prompted you to create the issue but this is nonetheless worth having a discussion about. There is also the option to do https://github.com/ansible/molecule/blob/master/test/scenarios/driver/docker/molecule/default/molecule.yml#L22 to specify the roles path. This could potentially need better documenting.
I'll create another issue for the thing I was talking about on IRC now ...
The resolution for this needs to be some form of symlink created in a directoy like the dependency role directory, from my example this would be
Example of it working, carrying on from above:
There might be a more appropriate solution to add a new path to the
Okay, I've another workaround, since I've realised that Ansible Roles are named by their directory, unless a rename is included in