Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
ERROR! couldn't resolve module/action 'na_ontap_snapmirror_policy'.
2023-03-27
12:54 AM
2,986 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
~
