I am trying to use Ansible collections with my molecule test
molecule.yml
```
---
dependency:
name: galaxy
options:
requirements-file: molecule/common/requirements.yml
driver:
name: delegated
options:
managed: False
ansible_connection_options:
ansible_connection: local
lint: |
set -e
yamllint .
platforms:
- name: molecule-kind-ingress
provisioner:
name: ansible
verifier:
name: ansible
playbooks:
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
```
With my converge.yml
```
---
- name: Converge
hosts: localhost
connection: local
collections:
- community.kubernetes
vars:
ansible_python_interpreter: '{{ ansible_playbook_python }}'
cluster_name: molecule-ingress
kind_home_dir: "/tmp/kind_test"
deploy_ingress: True
roles:
- role: kameshsampath.kind
```
When running the test molecule is not picking up my collection, eventually
resulting in a playbook error like:
```
fatal: [localhost]: FAILED! => {
"reason": "couldn't resolve module/action 'helm_repository'. This often
indicates a misspelling, missing collection, or incorrect module
path.\n\nThe error appears to be in
'/Users/kameshs/git/kameshsampath/kameshsampath.kind/tasks/ingress.yml':
line 2, column 3, but may\nbe elsewhere in the file depending on the exact
syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Add
stable chart Repo\n ^ here\n"
}
```
my requirements.yml does have the following entry
```
---
collections:
- community.kubernetes
```
I am not sure if I am missing anything here ?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/1f2320e3-e0ff-41eb-ad27-234e467adeadn%40googlegroups.com.