- name: quota creation
collections:
- netapp.ontap
netapp.ontap.na_ontap_quotas:
hostname: "{{ host_name }}"
username: "{{ username }}"
password: "{{ password }}"
state: present
vserver: "{{ svm }}"
volume: "{{ finalvolname }}"
quota_target: "{{ finalvolumenumber }}-01"
#quota_target: "/vol/{{ finalvolname }}"
type: tree
disk_limit: "{{ quota_size | int }}"
set_quota_status: True
validate_certs: "{{ validate_certs | default ('false') }}"
use_rest: always
When I use this module "netapp.ontap.na_ontap_quotas" with above mentioned parameters I get the below configuration on NAS wherein Target is getting configured to all qtrees. However I just needed to map it with a single qtree. The qtree I am using in quota_target parameter is already existing in the NAS.
nas::> quota policy rule show -vserver nas2-testsvm -volume yz183 -instance
Vserver: testsvm
Policy Name: default
Volume Name: yz183
Type: tree
Target: ""
Qtree Name: ""
User Mapping: -
Disk Limit: 921.6MB
Files Limit: -
Threshold for Disk Limit: -
Soft Disk Limit: -
Soft Files Limit: -
Someone please help on this. @hallow axle If possible kindly suggest on this.