paloaltonetworks.panos.panos_loadcfg (2.19.1) — module

load configuration on PAN-OS device

| "added in version" 1.0.0 of paloaltonetworks.panos"

Authors: Luigi Mori (@jtschichold), Ivan Bojer (@ivanbojer)

Install collection

Install with ansible-galaxy collection install paloaltonetworks.panos:==2.19.1


Add to requirements.yml

  collections:
    - name: paloaltonetworks.panos
      version: 2.19.1

Description

Load configuration on PAN-OS device


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# 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
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: load configuration
  paloaltonetworks.panos.panos_loadcfg:
    ip_address: "192.168.1.1"
    password: "admin"
    file: "{{result.filename}}"

Inputs

    
file:
    description:
    - configuration file to load
    required: false
    type: str

commit:
    description:
    - commit if changed
    type: bool

password:
    description:
    - password for authentication
    required: true
    type: str

username:
    default: admin
    description:
    - username for authentication
    required: false
    type: str

ip_address:
    description:
    - IP address (or hostname) of PAN-OS device
    required: true
    type: str