<?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 updating a portion of the rule - ansible in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/updating-a-portion-of-the-rule-ansible/m-p/318575#M2234</link>
    <description>&lt;P&gt;Wondering if anyone has had any experience updating rules. I have approximately 700 or so rules that i need to add a security profile group to...&amp;nbsp;&lt;/P&gt;&lt;P&gt;testing the following seems to basically overwrite anything not provided to 'any'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- name: update rules to FW&lt;BR /&gt;panos_security_rule:&lt;BR /&gt;ip_address: '{{ item.firewall }}'&lt;BR /&gt;username: '{{ username }}'&lt;BR /&gt;password: '{{ password }}'&lt;BR /&gt;rule_name: '{{ item.rule_name }}'&lt;BR /&gt;group_profile: '{{ item.profile_group_name }}'&lt;BR /&gt;commit: 'False'&lt;BR /&gt;with_items: "{{ firewall_rules }}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2020 20:09:19 GMT</pubDate>
    <dc:creator>Psabouri</dc:creator>
    <dc:date>2020-03-25T20:09:19Z</dc:date>
    <item>
      <title>updating a portion of the rule - ansible</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/updating-a-portion-of-the-rule-ansible/m-p/318575#M2234</link>
      <description>&lt;P&gt;Wondering if anyone has had any experience updating rules. I have approximately 700 or so rules that i need to add a security profile group to...&amp;nbsp;&lt;/P&gt;&lt;P&gt;testing the following seems to basically overwrite anything not provided to 'any'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- name: update rules to FW&lt;BR /&gt;panos_security_rule:&lt;BR /&gt;ip_address: '{{ item.firewall }}'&lt;BR /&gt;username: '{{ username }}'&lt;BR /&gt;password: '{{ password }}'&lt;BR /&gt;rule_name: '{{ item.rule_name }}'&lt;BR /&gt;group_profile: '{{ item.profile_group_name }}'&lt;BR /&gt;commit: 'False'&lt;BR /&gt;with_items: "{{ firewall_rules }}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 20:09:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/updating-a-portion-of-the-rule-ansible/m-p/318575#M2234</guid>
      <dc:creator>Psabouri</dc:creator>
      <dc:date>2020-03-25T20:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: updating a portion of the rule - ansible</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/updating-a-portion-of-the-rule-ansible/m-p/318608#M2235</link>
      <description>&lt;P&gt;Yes!&amp;nbsp; You can use facts and jinja2 templating functions to accomplish this.&amp;nbsp; I've authored a blog post that explains everything step by step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/Automation-API-Blog/Ansible-Using-Facts-Modules-to-do-Updates/ba-p/275173" target="_blank"&gt;https://live.paloaltonetworks.com/t5/Automation-API-Blog/Ansible-Using-Facts-Modules-to-do-Updates/ba-p/275173&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 23:12:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/updating-a-portion-of-the-rule-ansible/m-p/318608#M2235</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2020-03-25T23:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: updating a portion of the rule - ansible</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/updating-a-portion-of-the-rule-ansible/m-p/318630#M2242</link>
      <description>&lt;P&gt;giggidy .. thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 03:27:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/updating-a-portion-of-the-rule-ansible/m-p/318630#M2242</guid>
      <dc:creator>Psabouri</dc:creator>
      <dc:date>2020-03-26T03:27:57Z</dc:date>
    </item>
  </channel>
</rss>

