<?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 Always connect to active firewall in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/always-connect-to-active-firewall/m-p/524791#M3278</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;SPAN&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544"&gt;@gfreeman&lt;/a&gt;&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/15566"&gt;@btorresgil&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just checking how we can connect to active firewall using Ansible module .&lt;BR /&gt;&lt;BR /&gt;In python , we are using&amp;nbsp;refresh_ha_active()&amp;nbsp; and its working , however we need to test using Ansible.&lt;BR /&gt;Could you please provide some input here.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 19:11:49 GMT</pubDate>
    <dc:creator>DeepakVerma</dc:creator>
    <dc:date>2022-12-21T19:11:49Z</dc:date>
    <item>
      <title>Always connect to active firewall</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/always-connect-to-active-firewall/m-p/524791#M3278</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;SPAN&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544"&gt;@gfreeman&lt;/a&gt;&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/15566"&gt;@btorresgil&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just checking how we can connect to active firewall using Ansible module .&lt;BR /&gt;&lt;BR /&gt;In python , we are using&amp;nbsp;refresh_ha_active()&amp;nbsp; and its working , however we need to test using Ansible.&lt;BR /&gt;Could you please provide some input here.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 19:11:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/always-connect-to-active-firewall/m-p/524791#M3278</guid>
      <dc:creator>DeepakVerma</dc:creator>
      <dc:date>2022-12-21T19:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Always connect to active firewall</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/always-connect-to-active-firewall/m-p/531819#M3314</link>
      <description>&lt;P&gt;Why not just use &lt;A href="https://ansible-pan.readthedocs.io/en/latest/modules/panos_facts_module.html" target="_blank"&gt;https://ansible-pan.readthedocs.io/en/latest/modules/panos_facts_module.html&lt;/A&gt; the facts ansible module and "&lt;STRONG&gt;ansible_net_ha_localstate&lt;/STRONG&gt;" and then make the tasks that you want with an Ansible "when" condition to trigger only on the active firewall based on the variable collected by the facts module &lt;A href="https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_conditionals.html" target="_blank"&gt;https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_conditionals.html&lt;/A&gt; ?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 05:55:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/always-connect-to-active-firewall/m-p/531819#M3314</guid>
      <dc:creator>nikoolayy1</dc:creator>
      <dc:date>2023-02-21T05:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Always connect to active firewall</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/always-connect-to-active-firewall/m-p/531821#M3316</link>
      <description>&lt;P&gt;We just run the playbook against both Panorama ans stop it if the Panorama is not active. If used in multiple playbooks you could create an "stop passive Panorama" role and run it at the beginning of your playbook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;- name: "Panorama HA State - GET Facts"&lt;BR /&gt;  paloaltonetworks.panos.panos_facts:&lt;BR /&gt;  provider: '{{ device }}'&lt;BR /&gt;  gather_subset: ['ha']&lt;BR /&gt;&lt;BR /&gt;- name: "Panorama HA State - Show HA State"&lt;BR /&gt;  debug:&lt;BR /&gt;  msg: "HA State: {{ ansible_net_ha_localstate }} - {{ ( not ansible_net_ha_localstate.endswith('-active') ) | ternary('Not OK -&amp;gt; Need to Stop running further tasks for this host', 'OK') }}"&lt;BR /&gt;&lt;BR /&gt;- name: "Panorama HA State - Stop running Playbook for Hoost"&lt;BR /&gt;  meta: end_host&lt;BR /&gt;  when:&lt;BR /&gt;    - "not ansible_net_ha_localstate.endswith('-active')"&lt;/PRE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 06:46:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/always-connect-to-active-firewall/m-p/531821#M3316</guid>
      <dc:creator>Gruber_Marco</dc:creator>
      <dc:date>2023-02-21T06:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Always connect to active firewall</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/always-connect-to-active-firewall/m-p/532204#M3318</link>
      <description>&lt;P&gt;Just connect to the loopback IP of the HA firewall pair which will always be the active firewall.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 17:53:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/always-connect-to-active-firewall/m-p/532204#M3318</guid>
      <dc:creator>stangri-la</dc:creator>
      <dc:date>2023-02-24T17:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Always connect to active firewall</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/always-connect-to-active-firewall/m-p/534309#M3330</link>
      <description>&lt;P&gt;Also if you configure just one floating IP it will be the same deal with connecting to just the active device. It is called active-active but with one floating ip it is actually active-standby:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-admin/high-availability/ha-concepts/floating-ip-address-and-virtual-mac-address" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-admin/high-availability/ha-concepts/floating-ip-address-and-virtual-mac-address&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 06:57:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/always-connect-to-active-firewall/m-p/534309#M3330</guid>
      <dc:creator>nikoolayy1</dc:creator>
      <dc:date>2023-03-14T06:57:52Z</dc:date>
    </item>
  </channel>
</rss>

