paloaltonetworks.panos.panos_commit_firewall module – Commit the firewall’s candidate configuration.
Note
This module is part of the paloaltonetworks.panos collection (version 2.21.2).
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_commit_firewall
.
New in paloaltonetworks.panos 2.0.0
Synopsis
Module that will commit the candidate configuration of a PAN-OS firewall.
The new configuration will become active immediately.
Requirements
The below requirements are needed on the host that executes this module.
pan-os-python
Parameters
Parameter |
Comments |
---|---|
Commit only the changes made by specified list of administrators. |
|
A description of the commit. |
|
Exclude network and device configuration changes. Choices: |
|
Exclude policy and object configuration changes. Choices: |
|
Exclude shared object configuration changes. Choices: |
|
Force the commit. Choices: |
|
A dict object containing connection details. |
|
The API key to use instead of generating it using username / password. |
|
The IP address or hostname of the PAN-OS device being configured. |
|
The password to use for authentication. This is ignored if api_key is specified. |
|
The port number to connect to the PAN-OS device on. Default: :ansible-option-default:`443` |
|
The serial number of a firewall to use for targeted commands. If ip_address is not a Panorama PAN-OS device, then this param is ignored. |
|
The username to use for authentication. This is ignored if api_key is specified. Default: :ansible-option-default:`"admin"` |
|
Wait for the commit to complete. Choices: |
Examples
- name: commit candidate configs on firewall
paloaltonetworks.panos.panos_commit_firewall:
provider: '{{ credentials }}'
- name: commit changes by specified admins on firewall
paloaltonetworks.panos.panos_commit_firewall:
provider: '{{ credentials }}'
admins: ['netops', 'secops', 'cloudops']
description: 'Saturday change window'
- name: commit only policy and object changes on firewall
paloaltonetworks.panos.panos_commit_firewall:
provider: '{{ credentials }}'
exclude_device_and_network: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Commit job completion messages. Returned: on success Sample: :ansible-rv-sample-value:`"Configuration committed successfully"` |
|