<?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: Help with Ansible with YAML setting the quota_target with type tree in General Discussion</title>
    <link>https://community.netapp.com/t5/General-Discussion/Help-with-Ansible-with-YAML-setting-the-quota-target-with-type-tree/m-p/448965#M1557</link>
    <description>&lt;P&gt;Please ignore this. I found my mistake. I forgot to update the 'with_items' line appropriately. How to delete this thread?&lt;/P&gt;</description>
    <pubDate>Sat, 18 Nov 2023 11:28:18 GMT</pubDate>
    <dc:creator>SCL</dc:creator>
    <dc:date>2023-11-18T11:28:18Z</dc:date>
    <item>
      <title>Help with Ansible with YAML setting the quota_target with type tree</title>
      <link>https://community.netapp.com/t5/General-Discussion/Help-with-Ansible-with-YAML-setting-the-quota-target-with-type-tree/m-p/448960#M1556</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use Ansible with Yaml to set quota rules with type 'tree'. But, I seem unable to set the default quota_target value to "". Any help on how to get this done would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my Ansible code snippet:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- name: run ontap na_ontap_quotas
  netapp.ontap.na_ontap_quotas:
    state: "{{ item.state | default('present') }}"
    vserver: "{{ item.vserver }}"
    volume: "{{ item.volume }}"
    quota_target: "{{ item.quota_target | default('""') }}"
    type: "{{ item.type | default('tree') }}"
    disk_limit: "{{ item.disk_limit | default('200GB') }}"
    threshold: "{{ item.threshold | default('180GB') }}"
    soft_file_limit: "{{ item.soft_file_limit | default('160GB') }}"
    policy: "{{ item.policy | default(omit) }}"
    set_quota_status: "{{ item.set_quota_status | default('on') }}"
    &amp;lt;&amp;lt;: *login
  with_items: "{{ qtrees }}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried several combinations of double quotes and single quotes and escaping them and each time getting either a linter error or a syntax error (because I seem unable to pass in "" as a literal value for the target).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:43:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/Help-with-Ansible-with-YAML-setting-the-quota-target-with-type-tree/m-p/448960#M1556</guid>
      <dc:creator>SCL</dc:creator>
      <dc:date>2025-06-04T09:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Ansible with YAML setting the quota_target with type tree</title>
      <link>https://community.netapp.com/t5/General-Discussion/Help-with-Ansible-with-YAML-setting-the-quota-target-with-type-tree/m-p/448965#M1557</link>
      <description>&lt;P&gt;Please ignore this. I found my mistake. I forgot to update the 'with_items' line appropriately. How to delete this thread?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 11:28:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/Help-with-Ansible-with-YAML-setting-the-quota-target-with-type-tree/m-p/448965#M1557</guid>
      <dc:creator>SCL</dc:creator>
      <dc:date>2023-11-18T11:28:18Z</dc:date>
    </item>
  </channel>
</rss>

