When trying to run a template job within AWX, I receive the following error:
ERROR! couldn't resolve module/action 'netapp.ontap.na_ontap_rest_info'. This often indicates a misspelling, missing collection, or incorrect module path.
I would expect the job to run since I have already installed the netapp.ontap galaxy collection.
$ ansible-galaxy collection list
# /home/admin/.ansible/collections/ansible_collections
Collection Version
------------------ -------
cloud.common 3.0.0
community.vmware 4.0.1
netapp.ontap 22.9.0
vmware.vmware_rest 3.0.0
ONTAP Version
MARS40-CLUSTER::> version
NetApp Release 9.12.1: Tue Jan 31 19:19:43 UTC 2023
Playbook
---
- hosts: localhost
gather_facts: false
name: Connectivity Test & Display ONTAP Info
tasks:
- name: Test Connectivity
uri:
url: "https://{{ netapp_hostname }}"
method: GET
validate_certs: false
return_content: no
register: response
- name: Print Connectivity Test Result
debug:
msg: "Connectivity test passed with status code: {{ response.status }}"
when: response.status == 200
- name: Collect ONTAP Info
netapp.ontap.na_ontap_rest_info:
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
validate_certs: false
gather_subsets: "svm/svms"
register: ontap_info
- name: Print ONTAP Response
debug:
msg: "{{ ontap_info }}"
Steps to Reproduce
Expected Results
I would expect the playbook to run and use the module provided.
Actual Results
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
Summary
When trying to run a template job within AWX, I receive the following error:
ERROR! couldn't resolve module/action 'netapp.ontap.na_ontap_rest_info'. This often indicates a misspelling, missing collection, or incorrect module path.
I would expect the job to run since I have already installed the netapp.ontap galaxy collection.
Component Name
ontap_rest_info
Ansible Version
ONTAP Collection Version
ONTAP Version
Playbook
Steps to Reproduce
Expected Results
I would expect the playbook to run and use the module provided.
Actual Results