<?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 Ansible Module ver 2.2 does not support sec rule update operation deprecated in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/270634#M1952</link>
    <description>&lt;P&gt;Newly Ansible Module ver 2.2 does not support sec rule update. operation keyword is deprecated and state key&amp;nbsp; only has absent or present values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also experienced&amp;nbsp; after creating sec-rule, objects are not created automatically. I can see the rule is created with the specified source and destination ips but objects of the ip addresses not present in the objects section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2019 17:53:45 GMT</pubDate>
    <dc:creator>mesgun</dc:creator>
    <dc:date>2019-06-17T17:53:45Z</dc:date>
    <item>
      <title>Ansible Module ver 2.2 does not support sec rule update operation deprecated</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/270634#M1952</link>
      <description>&lt;P&gt;Newly Ansible Module ver 2.2 does not support sec rule update. operation keyword is deprecated and state key&amp;nbsp; only has absent or present values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also experienced&amp;nbsp; after creating sec-rule, objects are not created automatically. I can see the rule is created with the specified source and destination ips but objects of the ip addresses not present in the objects section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 17:53:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/270634#M1952</guid>
      <dc:creator>mesgun</dc:creator>
      <dc:date>2019-06-17T17:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible Module ver 2.2 does not support sec rule update operation deprecated</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/270642#M1953</link>
      <description>&lt;P&gt;Regarding &lt;CODE&gt;operation&lt;/CODE&gt; being replaced with &lt;CODE&gt;state&lt;/CODE&gt;, this is intended.&amp;nbsp; Using &lt;CODE&gt;state&lt;/CODE&gt;, you either assert you want something to exist (and be configured as specified) or not exist (whether it was there previously or not).&amp;nbsp; This is a huge quality of life improvement as you no longer need pre-existing knowledge to use the modules effectively.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding address objects being "created automatically," I am not sure I understand what you're saying.&amp;nbsp; Are you saying that an object would not exist previously and then would exist and be defined after calling &lt;CODE&gt;panos_security_rule&lt;/CODE&gt;...?&amp;nbsp; Or that you specify address objects in the source and destinations but those are not present in the resulting security rule..?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 18:23:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/270642#M1953</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2019-06-17T18:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible Module ver 2.2 does not support sec rule update operation deprecated</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/270643#M1954</link>
      <description>&lt;P&gt;Thank You gfreeman for your reply&lt;/P&gt;&lt;P&gt;As far as i understand from your explaining i can update an existing sec-rule by just using its name .&lt;/P&gt;&lt;P&gt;Let me ask the second part other way.&lt;/P&gt;&lt;P&gt;Do i have to create address objects before i add security rule ?.&lt;/P&gt;&lt;P&gt;Or if i add a security rule via ansible, shouldn't be objects created automatically in the firewall ?&lt;/P&gt;&lt;P&gt;In my case i see the security rule is created and in the rule row i can see the source ip but in the objects tab i cannot see the object i have used in the rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 18:49:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/270643#M1954</guid>
      <dc:creator>mesgun</dc:creator>
      <dc:date>2019-06-17T18:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible Module ver 2.2 does not support sec rule update operation deprecated</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/270735#M1955</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-06-18 07_08_05-SEC-PA-VM100.png" style="width: 999px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/20431i46079FCB8BCBDF05/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="2019-06-18 07_08_05-SEC-PA-VM100.png" alt="2019-06-18 07_08_05-SEC-PA-VM100.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-06-18 07_12_00-SEC-PA-VM100.png" style="width: 999px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/20432i919BCB845B802EA1/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="2019-06-18 07_12_00-SEC-PA-VM100.png" alt="2019-06-18 07_12_00-SEC-PA-VM100.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 04:13:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/270735#M1955</guid>
      <dc:creator>mesgun</dc:creator>
      <dc:date>2019-06-18T04:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible Module ver 2.2 does not support sec rule update operation deprecated</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/271000#M1956</link>
      <description>&lt;P&gt;In your playbook, you need to use IP addresses when you want a freeform IP address, or names (for example, names of address objects) if you want to use a named object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me use your "Action Test" rule as an example, as it has two IPs.&amp;nbsp; Since I don't know what the name of "1.2.3.4" is in your firewall, I'll just name it "ansible-address-object".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's my full playbook:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;- name: Network Playbook
  hosts: fw
  connection: local
  gather_facts: false

  roles:
    - role: PaloAltoNetworks.paloaltonetworks

  tasks:
  - name: Grab auth creds
    include_vars: 'vars.yml'
    no_log: 'yes'

  - name: create address object
    panos_address_object:
      provider: '{{ aws_provider }}'
      name: 'ansible-address-object'
      value: '1.2.3.4'
      description: 'created by Ansible'
      commit: false

  - name: create security rule using the address object
    panos_security_rule:
      provider: '{{ aws_provider }}'
      rule_name: 'Action Test'
      source_ip: ['ansible-address-object', '2.3.4.5']
      action: 'deny'
      service: ['service-http']
      commit: false
&lt;/PRE&gt;
&lt;P&gt;This playbook results in a new address object being created named "ansible-address-object", and then that object is used in the source address field of my "Action Test" rule.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 17:27:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/271000#M1956</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2019-06-18T17:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible Module ver 2.2 does not support sec rule update operation deprecated</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/271204#M1957</link>
      <description>&lt;P&gt;Thank You for your detailed reply&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544"&gt;@gfreeman&lt;/a&gt; I have used the sample you have sent and see the added address object in the firewall.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 06:21:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/271204#M1957</guid>
      <dc:creator>mesgun</dc:creator>
      <dc:date>2019-06-19T06:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible Module ver 2.2 does not support sec rule update operation deprecated</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/308067#M2148</link>
      <description>&lt;P&gt;I am having a similar issue with not being able to update an existing rule. Has this functionality been completely removed?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 16:39:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-ver-2-2-does-not-support-sec-rule-update/m-p/308067#M2148</guid>
      <dc:creator>JeremyViteka</dc:creator>
      <dc:date>2020-01-27T16:39:06Z</dc:date>
    </item>
  </channel>
</rss>

