ONTAP Discussions

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

anusha90
1,848 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
1,827 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
1,816 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
1,812 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