paloaltonetworks.panos.panos_device_group module – Manage Panorama device group
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_device_group
.
New in paloaltonetworks.panos 2.8.0
Synopsis
Manage Panorama device group.
Requirements
The below requirements are needed on the host that executes this module.
pan-python can be obtained from PyPI https://pypi.python.org/pypi/pan-python
pandevice can be obtained from PyPI https://pypi.python.org/pypi/pandevice
pandevice >= 1.5.1
Parameters
Parameter |
Comments |
---|---|
When state=gathered. An advanced filtering option to filter results returned from PAN-OS. Refer to the guide discussing gathered_filter for more information. |
|
Name of the device group. |
|
Name of the device group parent. An empty parent means the parent device group should be “shared”. |
|
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"` |
|
List of tags |
Notes
Note
Panorama is supported.
This is a Panorama only module.
Check mode is supported.
Examples
# Create a device group under shared.
- name: Create device group
paloaltonetworks.panos.panos_device_group:
provider: '{{ provider }}'
name: 'hello world'
# Create a device group under "hello world"
- name: Create device group under hello world
paloaltonetworks.panos.panos_device_group:
provider: '{{ provider }}'
name: 'child'
parent: 'hello world'
# Delete the child device group
- name: Delete a device group.
paloaltonetworks.panos.panos_device_group:
provider: '{{ provider }}'
name: 'some device group'
state: 'absent'