<?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 - unable to add new firewall to Panorama in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-unable-to-add-new-firewall-to-panorama/m-p/326148#M2303</link>
    <description>&lt;P&gt;Any suggestions here is much appreciated. Brand new firewall built in AWS- I am able to interact with the firewall with ansible using the paloalto role - the only thing that is giving me fits is setting the primary panorama server IP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my (abbreviated) playbook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;--- # Initial config
- hosts: panos
  connection: local
  gather_facts: False

  roles:
    - role: paloaltonetworks.paloaltonetworks

  vars:
    pafw:
      username: '{{ username }}'
      password: '{{ password }}'
      ip_address: '{{ inventory_hostname }}'

  tasks:
    - name: Grab the credentials from ansible-vault
      include_vars: firewall-secrets.yml
      no_log: 'yes'

    - name: MgtConfig
      panos_mgtconfig:
        provider: '{{ pafw }}'
        dns_server_primary: "8.8.8.8"
        dns_server_secondary: "4.4.4.4"
        ntp_server_primary: "0.us.pool.ntp.org"
        ntp_server_secondary: "1.us.pool.ntp.org"
        timezone: "US/Eastern"
        panorama_primary: "128.0.0.1"
        commit: True&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I run the playbook, I get an API error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    "msg": "Failed to update panorama: Could not get schema node for xpath /config/devices/entry[@name='localhost.localdomain']/deviceconfig/system/panorama-server\n"&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 05 May 2020 14:09:24 GMT</pubDate>
    <dc:creator>mdsmith82</dc:creator>
    <dc:date>2020-05-05T14:09:24Z</dc:date>
    <item>
      <title>Ansible - unable to add new firewall to Panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-unable-to-add-new-firewall-to-panorama/m-p/326148#M2303</link>
      <description>&lt;P&gt;Any suggestions here is much appreciated. Brand new firewall built in AWS- I am able to interact with the firewall with ansible using the paloalto role - the only thing that is giving me fits is setting the primary panorama server IP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my (abbreviated) playbook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;--- # Initial config
- hosts: panos
  connection: local
  gather_facts: False

  roles:
    - role: paloaltonetworks.paloaltonetworks

  vars:
    pafw:
      username: '{{ username }}'
      password: '{{ password }}'
      ip_address: '{{ inventory_hostname }}'

  tasks:
    - name: Grab the credentials from ansible-vault
      include_vars: firewall-secrets.yml
      no_log: 'yes'

    - name: MgtConfig
      panos_mgtconfig:
        provider: '{{ pafw }}'
        dns_server_primary: "8.8.8.8"
        dns_server_secondary: "4.4.4.4"
        ntp_server_primary: "0.us.pool.ntp.org"
        ntp_server_secondary: "1.us.pool.ntp.org"
        timezone: "US/Eastern"
        panorama_primary: "128.0.0.1"
        commit: True&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I run the playbook, I get an API error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    "msg": "Failed to update panorama: Could not get schema node for xpath /config/devices/entry[@name='localhost.localdomain']/deviceconfig/system/panorama-server\n"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 May 2020 14:09:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-unable-to-add-new-firewall-to-panorama/m-p/326148#M2303</guid>
      <dc:creator>mdsmith82</dc:creator>
      <dc:date>2020-05-05T14:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - unable to add new firewall to Panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-unable-to-add-new-firewall-to-panorama/m-p/326196#M2304</link>
      <description>&lt;P&gt;Update the pandevice python library.&amp;nbsp; PAN-OS 9.1 has changed the locations for the primary and secondary panorama server IP addresses, and the more recent version of pandevice has the new xpath locations.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 16:43:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-unable-to-add-new-firewall-to-panorama/m-p/326196#M2304</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2020-05-05T16:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - unable to add new firewall to Panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-unable-to-add-new-firewall-to-panorama/m-p/326208#M2308</link>
      <description>&lt;P&gt;Thanks for the suggestion - I have updated with PIP, but this has still not resulted in success.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 17:33:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-unable-to-add-new-firewall-to-panorama/m-p/326208#M2308</guid>
      <dc:creator>mdsmith82</dc:creator>
      <dc:date>2020-05-05T17:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - unable to add new firewall to Panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-unable-to-add-new-firewall-to-panorama/m-p/415964#M2710</link>
      <description>&lt;P&gt;I have the same exact issue. I have the latest pandevice python library installed. My Palo Alto firewall is on release 10.0.4 and ansible version 2.9.10&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 15:21:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-unable-to-add-new-firewall-to-panorama/m-p/415964#M2710</guid>
      <dc:creator>GregAdolphson</dc:creator>
      <dc:date>2021-06-29T15:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - unable to add new firewall to Panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-unable-to-add-new-firewall-to-panorama/m-p/415967#M2711</link>
      <description>&lt;P&gt;Actually, I found the issue. I did not have pan-os-python installed.&lt;/P&gt;&lt;P&gt;pip install pan-os-python&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 15:25:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-unable-to-add-new-firewall-to-panorama/m-p/415967#M2711</guid>
      <dc:creator>GregAdolphson</dc:creator>
      <dc:date>2021-06-29T15:25:28Z</dc:date>
    </item>
  </channel>
</rss>

