community.network.panos_sag – Create a static address group.
community.network.panos_sag – Create a static address group.
Note
This plugin is part of the community.network collection (version 1.3.0).
To install it use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.panos_sag
.
DEPRECATED
- Removed in
- version 2.0.0
- Why
- Consolidating code base.
- Alternative
- Use https://galaxy.ansible.com/PaloAltoNetworks/paloaltonetworks instead.
Synopsis
- Create a static address group object in the firewall used for policy rules.
Requirements
The below requirements are needed on the host that executes this module.
- pan-python can be obtained from PyPI https://pypi.org/project/pan-python/
- pandevice can be obtained from PyPI https://pypi.org/project/pandevice/
- xmltodict can be obtained from PyPI https://pypi.org/project/xmltodict/
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
api_key string |
API key that can be used instead of username/password credentials. | |
commit boolean |
|
commit if changed |
description string |
The purpose / objective of the static Address Group | |
devicegroup string |
- The name of the Panorama device group. The group must exist on Panorama. If device group is not defined it is assumed that we are contacting a firewall. | |
ip_address string / required |
IP address (or hostname) of PAN-OS device. | |
operation string / required |
|
The operation to perform Supported values are add/list/delete. |
password string / required |
Password for authentication. | |
sag_match_filter list / elements=string |
Static filter user by the address group | |
sag_name string / required |
name of the dynamic address group | |
tags string |
Tags to be associated with the address group | |
username string |
Default: "admin" |
Username for authentication. |
Examples
- name: Sag
community.network.panos_sag:
ip_address: "192.168.1.1"
password: "admin"
sag_name: "sag-1"
static_value: ['test-addresses', ]
description: "A description for the static address group"
tags: ["tags to be associated with the group", ]
Status
- This module will be removed in version 2.0.0. [deprecated]
- For more information see DEPRECATED.
Authors
- Vinay Venkataraghavan (@vinayvenkat)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/network/panos_sag_module.html