Deprecated

Removed in 2.12

i

Reason:Consolidating code base. | Alternative:Use U(https://galaxy.ansible.com/PaloAltoNetworks/paloaltonetworks) instead.

community.general.panos_dag_tags (0.1.1) — module

Create tags for DAG's on PAN-OS devices.

Authors: Vinay Venkataraghavan (@vinayvenkat)

deprecated | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

Create the ip address to tag associations. Tags will in turn be used to create DAG's


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create the tags to map IP addresses
  panos_dag_tags:
    ip_address: "{{ ip_address }}"
    password: "{{ password }}"
    ip_to_register: "{{ ip_to_register }}"
    tag_names: "{{ tag_names }}"
    description: "Tags to allow certain IP's to access various SaaS Applications"
    operation: 'add'
  tags: "adddagip"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: List the IP address to tag mapping
  panos_dag_tags:
    ip_address: "{{ ip_address }}"
    password: "{{ password }}"
    tag_names: "{{ tag_names }}"
    description: "List the IP address to tag mapping"
    operation: 'list'
  tags: "listdagip"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Unregister an IP address from a tag mapping
  panos_dag_tags:
    ip_address: "{{ ip_address }}"
    password: "{{ password }}"
    ip_to_register: "{{ ip_to_register }}"
    tag_names: "{{ tag_names }}"
    description: "Unregister IP address from tag mappings"
    operation: 'delete'
  tags: "deletedagip"

Inputs

    
commit:
    default: true
    description:
    - commit if changed
    type: bool

api_key:
    description:
    - API key that can be used instead of I(username)/I(password) credentials.

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

username:
    default: admin
    description:
    - Username for authentication.
    type: str

operation:
    description:
    - The action to be taken. Supported values are I(add)/I(update)/I(find)/I(delete).

tag_names:
    description:
    - The list of the tags that will be added or removed from the IP address.

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

description:
    description:
    - The purpose / objective of the static Address Group

devicegroup:
    description: '- Device groups are used for the Panorama interaction with Firewall(s).
      The group must exists on Panorama. If device group is not define we assume that
      we are contacting Firewall.

      '

ip_to_register:
    description:
    - IP that will be registered with the given tag names.