Note: Ansible Collections are currently in tech preview. The details of this blog post may be outdated by the time you read this, though I will try to keep things updated if possible.
Ansible 2.8 and 2.9 introduced a new type of Ansible content, a 'Collection'. Collections are still in tech preview state, so things are prone to change.
Ansible Collections must be in a very specific path, like
You have to make sure your collection is in that specific path—with an empty directory named
ansible_collections, then a directory for the
namespace, and finally a directory for the
collection itself. I opened an issue in the Ansible issue queue asking if
ansible-test can allow running tests in an arbitrary collection directory, and for Molecule itself, there's more of a 'meta' issue, Molecule and Ansible Collections.