Hi All, Can someone please help me the exact ansible module to use for enabling nfs vol snaplock enable.
I am currently using below module and parameters :
- name: Set volume snaplock
na_ontap_volume_snaplock:
vserver: svm
name: ansibleVolume
default_retention_period: "5 days"
minimum_retention_period: "0 years"
maximum_retention_period: "10 days"
is_volume_append_mode_enabled: False
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
and I am getting this error.
TASK [set snaplock] *******************************************************************************************************************************************************************
ERROR! couldn't resolve module/action 'na_ontap_volume_snaplock'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/home/xyz/ansible-netapp/roles/T9_worm_snaplock/tasks/main.yml': line 1, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: set vol snaplock
^ here