<?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: No way to use target to  send an op command to a firewall from Panorama using the supported Ansible modules? in Panorama Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/panorama-discussions/no-way-to-use-target-to-send-an-op-command-to-a-firewall-from/m-p/1253478#M3082</link>
    <description>&lt;P&gt;Just came across this thread.&amp;nbsp; We struggled with this quite a bit.&amp;nbsp; We did end up pushing out an admin account for access to all firewalls managed by panorama with limited access (think limited GUI, XML, REST, etc.).&amp;nbsp; Then we would run Ansible OP against Panorama to collected the connected devices, then subsequently issue commands to the firewalls we needed to. One of our requirements was to not use the native Ansible URI module because we wanted to obfuscate the API key and keep it so it wasn't cleartext in bash history or something similar.&amp;nbsp; It's a bit of a mix between PANOS modules and Ansible stuff but it works great.&amp;nbsp; Plus if you collect the devices from Panorama first, you can filter on serial numbers, platform type, etc.&amp;nbsp; So it comes in handy if you want to target only firewalls on certain versions, certain types of platforms (PA-14XX) or something like that.&amp;nbsp; Hope this helps!&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2026 00:23:18 GMT</pubDate>
    <dc:creator>Josh_Warren</dc:creator>
    <dc:date>2026-05-06T00:23:18Z</dc:date>
    <item>
      <title>No way to use target to  send an op command to a firewall from Panorama using the supported Ansible modules?</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/no-way-to-use-target-to-send-an-op-command-to-a-firewall-from/m-p/1251091#M3066</link>
      <description>&lt;P&gt;I can do this by calling the API manually, but I can't seem to use the operation command module.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class="r1PmQe" data-processed="true" data-hveid="CBEQAA" data-sfc-cb="" data-wiz-uids="TFmBxe_4k,TFmBxe_4l,TFmBxe_4m" data-sfc-root="c"&gt;
&lt;DIV data-processed="true"&gt;
&lt;DIV class="pHpOfb" data-processed="true" data-animation-atomic=""&gt;
&lt;DIV class="pCTyYe" dir="ltr" data-processed="true"&gt;
&lt;PRE data-processed="true"&gt;&lt;CODE data-processed="true"&gt;&lt;SPAN class="undefined" data-processed="true"&gt;curl --location --globoff &lt;/SPAN&gt;&lt;SPAN class="CS0cqb" data-processed="true"&gt;'https://&amp;lt;Panorama-IP&amp;gt;/api/?type=op&amp;amp;cmd=&amp;lt;show&amp;gt;&amp;lt;system&amp;gt;&amp;lt;info&amp;gt;&amp;lt;/info&amp;gt;&amp;lt;/system&amp;gt;&amp;lt;/show&amp;gt;&amp;amp;target=0123456789&amp;amp;key=&amp;lt;your-api-key&amp;gt;'&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Skrting the issue in Ansible:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;- name: Run an op command on a firewall from Panorama
  ansible.builtin.uri:
    url: "https://{{ ip_address }}/api/?type=op&amp;amp;target={{ active_fw_serial }}&amp;amp;cmd={{ policy_match_xml | urlencode }}&amp;amp;key={{ panorama_api_key }}"
&lt;/LI-CODE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;Maybe I am missing something, but a quick look at the Python doesn't look like I can use the module for this. To have to manage another set of access, credentials, etc, to reach the firewalls directly for operational commands feels a bit off.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 17:26:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/no-way-to-use-target-to-send-an-op-command-to-a-firewall-from/m-p/1251091#M3066</guid>
      <dc:creator>Eric_B</dc:creator>
      <dc:date>2026-03-27T17:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: No way to use target to  send an op command to a firewall from Panorama using the supported Ansible modules?</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/no-way-to-use-target-to-send-an-op-command-to-a-firewall-from/m-p/1251139#M3067</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/119116"&gt;@Eric_B&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First of all, as a disclaimer, I'm not an expert in ansible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just looked the doc of the Ansible available modules.&lt;BR /&gt;&lt;BR /&gt;- panos_op&lt;BR /&gt;&lt;A href="https://galaxy.ansible.com/ui/repo/published/paloaltonetworks/panos/content/module/panos_op/" target="_blank"&gt;https://galaxy.ansible.com/ui/repo/published/paloaltonetworks/panos/content/module/panos_op/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;panos_type_cmd&lt;/P&gt;
&lt;P&gt;&lt;A href="https://galaxy.ansible.com/ui/repo/published/paloaltonetworks/panos/content/module/panos_type_cmd/" target="_blank"&gt;https://galaxy.ansible.com/ui/repo/published/paloaltonetworks/panos/content/module/panos_type_cmd/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For both modules, I see there is the "serial_number" which can be used for the target.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Have you explored that?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Olivier&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 03:09:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/no-way-to-use-target-to-send-an-op-command-to-a-firewall-from/m-p/1251139#M3067</guid>
      <dc:creator>ozheng</dc:creator>
      <dc:date>2026-03-30T03:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: No way to use target to  send an op command to a firewall from Panorama using the supported Ansible modules?</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/no-way-to-use-target-to-send-an-op-command-to-a-firewall-from/m-p/1253478#M3082</link>
      <description>&lt;P&gt;Just came across this thread.&amp;nbsp; We struggled with this quite a bit.&amp;nbsp; We did end up pushing out an admin account for access to all firewalls managed by panorama with limited access (think limited GUI, XML, REST, etc.).&amp;nbsp; Then we would run Ansible OP against Panorama to collected the connected devices, then subsequently issue commands to the firewalls we needed to. One of our requirements was to not use the native Ansible URI module because we wanted to obfuscate the API key and keep it so it wasn't cleartext in bash history or something similar.&amp;nbsp; It's a bit of a mix between PANOS modules and Ansible stuff but it works great.&amp;nbsp; Plus if you collect the devices from Panorama first, you can filter on serial numbers, platform type, etc.&amp;nbsp; So it comes in handy if you want to target only firewalls on certain versions, certain types of platforms (PA-14XX) or something like that.&amp;nbsp; Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2026 00:23:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/no-way-to-use-target-to-send-an-op-command-to-a-firewall-from/m-p/1253478#M3082</guid>
      <dc:creator>Josh_Warren</dc:creator>
      <dc:date>2026-05-06T00:23:18Z</dc:date>
    </item>
  </channel>
</rss>

