I have been trying to create a manual source control type project but need to install some collections along side it.
I have the mount created and is being mounted into my pods.
I created the sub project and i can see my playbooks.
I need to install some collections to support my plays. I’ve installed them manually under the collections\ansible_collections but my play isn’t seeing them:
.
├── ansible.cfg
├── collections
│ ├── ansible_collections
│ │ ├── awx
│ │ ├── awx.awx-24.6.1.info
│ │ ├── community
│ │ ├── community.general-13.4.0.info
│ │ ├── community.library_inventory_filtering_v1-1.1.5.info
│ │ ├── kubernetes
│ │ └── kubernetes.core-6.5.0.info
│ └── requirements.yml
├── playbooks
│ └── tester.yaml
├── roles
│ ├── debug_role
│ │ ├── defaults
│ │ ├── handlers
│ │ ├── meta
│ │ ├── README.md
│ │ ├── tasks
│ │ ├── tests
│ │ └── vars
Error seen:
ERROR! couldn’t resolve module/action ‘community.general.mail’. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in ‘/runner/project/roles/gather_facts/tasks/main.yml’: line 96, column 11, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Email error report - other # noqa: run-once\[task\]
^ here
Any suggestions would be greatly appreciated