cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Who Me Too'd this topic

Ansible - unable to add new firewall to Panorama

L0 Member

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. 

 

Here is my (abbreviated) playbook

 

--- # 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

 

But when I run the playbook, I get an API error

 

    "msg": "Failed to update panorama: Could not get schema node for xpath /config/devices/entry[@name='localhost.localdomain']/deviceconfig/system/panorama-server\n"
Who Me Too'd this topic