You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got an existing ansible role that relies on a custom plugin gce_facts, I have created a a version of this to return dummy data for testing within docker. I've mounted mount the plugin into /usr/share/ansible/plugins/modules/dummy-gce-facts.
But when running molecule converge -- --extra-vars "cloud_provider=Google" I get the following error:
ERROR! couldn't resolve module/action 'gce_facts'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/app/roles/master/tasks/main.yml': line 1, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Gather instance facts | Google Cloud Platform
^ here
Please could someone advise me on why molecule is not detecting the custom plugin even when set in a default ansible plugins location?
Really struggling to figure this out.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm new to molecule so learning as I go along.
I've got an existing ansible role that relies on a custom plugin gce_facts, I have created a a version of this to return dummy data for testing within docker. I've mounted mount the plugin into
/usr/share/ansible/plugins/modules/dummy-gce-facts
.But when running
molecule converge -- --extra-vars "cloud_provider=Google"
I get the following error:My molecule file looks like this:
I'm using a custom docker image, generate with the following
Dockerfile
:Ansible & Molecule Version:
Please could someone advise me on why molecule is not detecting the custom plugin even when set in a default ansible plugins location?
Really struggling to figure this out.
Beta Was this translation helpful? Give feedback.
All reactions