molecule-action
molecule-action copied to clipboard
Couldn't resolve module/action 'community.docker.docker_container'
I've been running the action for a while now, and recently (couple months?) is keeps failing with the following error:
ERROR! couldn't resolve module/action 'community.docker.docker_container'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/app/.venv/lib/python3.11/site-packages/molecule_plugins/docker/playbooks/destroy.yml': line 15, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Destroy molecule instance(s)
^ here
CRITICAL Ansible return code was 4, command was: ansible-playbook --diff --inventory /github/home/.cache/molecule/authelia/default/inventory --skip-tags molecule-notest,notest /app/.venv/lib/python3.11/site-packages/molecule_plugins/docker/playbooks/destroy.yml
WARNING An error occurred during the test sequence action: 'destroy'. Cleaning up.
So it's as if Ansible within the action container can't see the module. I'm not the expert in dependency management here, but I can see ansible-core
in the poetry.lock
file and I can't see this community module added anywhere to this "minimalist language and runtime package" that ansible-core
is.
One other github molecule action seems to be requiring the full "ansible" package: https://github.com/robertdebock/docker-github-action-molecule/blob/master/requirements.txt
So is this a bug in molecule-action
? If not, how else can I add comunity.docker.docker_container
to my tests, in general, not to each role?