NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

ERROR! couldn't resolve module/action 'na_ontap_snapmirror_policy'.

anusha90
4,021 Views

ERROR! couldn't resolve module/action 'na_ontap_snapmirror_policy'. This often indicates a misspelling, missing collection, or incorrect module path.

Although na_ontap_snapmirror module working fine

3 REPLIES 3

Ontapforrum
3,996 Views

It may be a generic error related to ansible version or some library missing. It may be worth just verifying if all the pre-requisites are met.

 

Requirements:
https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_snapmirror_policy_module.html

 

TMACMD
3,985 Views

Sounds like you might be doing svmdr or along those lines. Either way you may be referencing a snapmirror policy that either doesn’t exist or you have used different cases in the spelling and not using it:

MyPolicy is not the same as mypolicy

 

 

anusha90
3,981 Views

This is how I am using module, na_ontap_snapmirror module working fine and all pre-requisites match

 

- name: Create SnapMirror policy
na_ontap_snapmirror_policy:
state: present
vserver: "SVM1"
policy_name: "ansible_policy"
policy_type: "mirror_vault"
comment: "created by ansible"
hostname: "abc"
username: "abc"
password: "abcj"
https: true
validate_certs: false
~

Public