I am attempting to run my Ansible playbook against my NetApp cluster, and I receive the following error shown below.
I have met all of the requirements for installing netapp.ontap collections.
What am I missing here? The .yml file looks more than fine and is spelled correctly. I have tried reinstalling “ansible-galaxy collection install netapp.ontap” several times but with no luck.
ERROR! couldn't resolve module/action 'netapp.ontap.na_ontap_rest_info'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/runner/project/Test-Connectivity.yml': line 20, column 7, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Collect ONTAP Info
^ here
That being said, I didn’t do anything special about installing, as you can see from my command, and yes, maybe that’s the issue, but I wasn’t sure how or what differently I needed to do.
But I only use the default ‘AWX-EE’ environment within AWX.
@akira6592 Since you brought it up, do you mean I need to do something like this - “ansible-galaxy collection install --environment awx-ee <collection_name>”.
Does that look to be what you mean?
I will try that and update the ticket. Sometimes, I just need a little help : )