paloaltonetworks.panos.panos_loadcfg module – load configuration on PAN-OS device

Note

This module is part of the paloaltonetworks.panos collection (version 2.19.1).

To install it, use: ansible-galaxy collection install paloaltonetworks.panos. You need further requirements to be able to use this module, see Requirements for details.

To use it in a playbook, specify: paloaltonetworks.panos.panos_loadcfg.

New in paloaltonetworks.panos 1.0.0

Synopsis

  • Load configuration on PAN-OS device

Requirements

The below requirements are needed on the host that executes this module.

  • pan-python

Parameters

Parameter

Comments

commit

boolean

file

string

configuration file to load

ip_address

string / required

IP address (or hostname) of PAN-OS device

password

string / required

password for authentication

username

string

username for authentication

Default: :ansible-option-default:`"admin"`

Examples

# Import and load config file from URL
- name: import configuration
  paloaltonetworks.panos.panos_import:
    ip_address: "192.168.1.1"
    password: "admin"
    url: "{{ConfigURL}}"
    category: "configuration"
  register: result
- name: load configuration
  paloaltonetworks.panos.panos_loadcfg:
    ip_address: "192.168.1.1"
    password: "admin"
    file: "{{result.filename}}"

Authors

  • Luigi Mori (@jtschichold), Ivan Bojer (@ivanbojer)