<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Ansible for Netapp: Export policy for Qtree in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Ansible-for-Netapp-Export-policy-for-Qtree/m-p/155662#M35088</link>
    <description>&lt;P&gt;Thanks a lot Guys for your help. I upgraded my ansible to 2.9 and now i can this export_policy parameter in qtree module and able to update it via playbook.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take care everyone.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2020 14:29:25 GMT</pubDate>
    <dc:creator>raj_shrivastava11</dc:creator>
    <dc:date>2020-04-21T14:29:25Z</dc:date>
    <item>
      <title>Ansible for Netapp: Export policy for Qtree</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Ansible-for-Netapp-Export-policy-for-Qtree/m-p/155582#M35053</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a setup wherein today we apply Export Policy per Qtree but while looking into Ansible modules i dont see option to apply Export policy to Qtree while creating a Qtree. I can only see export policy option available at Volume level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it not available at Qtree level?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:13:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Ansible-for-Netapp-Export-policy-for-Qtree/m-p/155582#M35053</guid>
      <dc:creator>raj_shrivastava11</dc:creator>
      <dc:date>2025-06-04T11:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible for Netapp: Export policy for Qtree</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Ansible-for-Netapp-Export-policy-for-Qtree/m-p/155601#M35059</link>
      <description>&lt;P&gt;Hi Raj,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at the latest module for Qtrees it appears to be possible to set an export policy using the "export_policy" property.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://docs.ansible.com/ansible/latest/modules/na_ontap_qtree_module.html" href="https://docs.ansible.com/ansible/latest/modules/na_ontap_qtree_module.html" target="_blank" rel="noopener"&gt;https://docs.ansible.com/ansible/latest/modules/na_ontap_qtree_module.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 04:57:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Ansible-for-Netapp-Export-policy-for-Qtree/m-p/155601#M35059</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2020-04-17T04:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible for Netapp: Export policy for Qtree</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Ansible-for-Netapp-Export-policy-for-Qtree/m-p/155619#M35069</link>
      <description>&lt;P&gt;Thanks Matt for the reply. I added the "export_policy" property but getting below error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ ansible-playbook Qtree_Create_template.yml --extra-vars "@Qtree_Create_Variable.yml"&lt;BR /&gt;[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PLAY [Qtree Action] ****************************************************************************************************************************************************************************&lt;/P&gt;
&lt;P&gt;TASK [Gathering Facts] *************************************************************************************************************************************************************************&lt;BR /&gt;ok: [localhost]&lt;/P&gt;
&lt;P&gt;TASK [Create Qtrees] ***************************************************************************************************************************************************************************&lt;BR /&gt;fatal: [localhost]: FAILED! =&amp;gt; {"changed": false, "msg": "Unsupported parameters for (na_ontap_qtree) module: export_policy Supported parameters include: flexvol_name, from_name, hostname, http_port, https, name, ontapi, password, state, username, validate_certs, vserver"}&lt;/P&gt;
&lt;P&gt;PLAY RECAP *************************************************************************************************************************************************************************************&lt;BR /&gt;localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Ansible version is 2.8.4&lt;/P&gt;
&lt;P&gt;Python 3.7&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 15:48:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Ansible-for-Netapp-Export-policy-for-Qtree/m-p/155619#M35069</guid>
      <dc:creator>raj_shrivastava11</dc:creator>
      <dc:date>2020-04-17T15:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible for Netapp: Export policy for Qtree</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Ansible-for-Netapp-Export-policy-for-Qtree/m-p/155634#M35072</link>
      <description>&lt;P&gt;Hi Raj,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested it, here is an example playbook:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;---
- hosts: localhost
  gather_facts: false
  name: na_ontap_qtree
  vars:
    login: &amp;amp;login
      hostname: cluster1.testlab.local
      username: admin
      password: N0tMyP@ssw0rd!
      https: yes
      use_rest: Always
      validate_certs: no
  tasks:
  - name: Create qtree
    na_ontap_qtree:
      export_policy: policy_001
      flexvol_name: nfs_data_001
      name: qtree_001
      oplocks: enabled
      security_style: unix
      state: present
      vserver: vserver2
      &amp;lt;&amp;lt;: *login&lt;/LI-CODE&gt;
&lt;P&gt;When i run the playbook it works successfully.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[root@testux1 playbooks]# ansible-playbook qtree.yml
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [na_ontap_qtree] *******************************************************************************************************************************************************************************

TASK [Create qtree qtree_001 in volume nfs_data_001 on vserver vserver4] ****************************************************************************************************************************
changed: [localhost]

PLAY RECAP ******************************************************************************************************************************************************************************************
localhost                  : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

&lt;/LI-CODE&gt;
&lt;P&gt;The storage shows the qtree created on the volume exported to the policy.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cluster1::&amp;gt; qtree show -vserver vserver2 -volume nfs_data_001 -qtree qtree_001 -instance

                                 Vserver Name: vserver2
                                  Volume Name: nfs_data_001
                                   Qtree Name: qtree_001
             Actual (Non-Junction) Qtree Path: /vol/nfs_data_001/qtree_001
                               Security Style: unix
                                  Oplock Mode: enable
                             Unix Permissions: ---rwxr-xr-x
                                     Qtree Id: 1
                                 Qtree Status: normal
                                Export Policy: policy_001
                   Is Export Policy Inherited: false
&lt;/LI-CODE&gt;
&lt;P&gt;It is possible, perhaps you need to update the module?&lt;/P&gt;
&lt;P&gt;&lt;A title="https://docs.ansible.com/ansible/latest/modules/na_ontap_qtree_module.html" href="https://docs.ansible.com/ansible/latest/modules/na_ontap_qtree_module.html" target="_blank" rel="noopener"&gt;https://docs.ansible.com/ansible/latest/modules/na_ontap_qtree_module.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 05:14:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Ansible-for-Netapp-Export-policy-for-Qtree/m-p/155634#M35072</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2020-04-20T05:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible for Netapp: Export policy for Qtree</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Ansible-for-Netapp-Export-policy-for-Qtree/m-p/155662#M35088</link>
      <description>&lt;P&gt;Thanks a lot Guys for your help. I upgraded my ansible to 2.9 and now i can this export_policy parameter in qtree module and able to update it via playbook.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take care everyone.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 14:29:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Ansible-for-Netapp-Export-policy-for-Qtree/m-p/155662#M35088</guid>
      <dc:creator>raj_shrivastava11</dc:creator>
      <dc:date>2020-04-21T14:29:25Z</dc:date>
    </item>
  </channel>
</rss>

