#Modification of qtree using Ansible

1 messages · Page 1 of 1 (latest)

echo lichen
#

I am unable to find a module wherein I could modify the qtree as per newly created export policy and qtree path.

Below is what the requirement is through Ansible.
volume qtree modify -vserver nassvm -qtree-path /vol/nfs2206/2206-01 -export-policy 2206-01

Here I have export policy created by the name '2206-01'.

Can anyone please let me know the netapp module that I can use to achieve this using Ansible.

#

@vivid dragon Request you to kindly suggest on this.

vivid dragon
#

na_ontap_qtree module is good to modify export policy

It requires volume name, so took volume name as nfs2206 and qtree name as 2206-01 from your qtree path - /vol/nfs2206/2206-01

to modify export policy on qtree, this should help.

- name: modify export policy na_ontap_qtree: state: present name: 2206-01 flexvol_name: nfs2206 vserver: "{{ vserver }}" export_policy: 2206-01