ansible.builtin.panos_address (v2.3.3.0-1) — module

Create address service object on PanOS devices

| "added in version" 2.3 of ansible.builtin"

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

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.3.3.0.post1

Description

Create address service object of different types [IP Range, FQDN, or IP Netmask].


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: create IP-Netmask Object
  panos_address:
    ip_address: "192.168.1.1"
    password: 'admin'
    address_name: 'google_dns'
    address: '8.8.8.8/32'
    description: 'Google DNS'
    tag: 'Outbound'
    commit: False
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: create IP-Range Object
  panos_address:
    ip_address: "192.168.1.1"
    password: 'admin'
    type: 'ip-range'
    address_name: 'apple-range'
    address: '17.0.0.0-17.255.255.255'
    commit: False
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: create FQDN Object
  panos_address:
    ip_address: "192.168.1.1"
    password: 'admin'
    type: 'fqdn'
    address_name: 'google.com'
    address: 'www.google.com'

Inputs

    
tag:
    default: None
    description:
    - Tag of the address object.

type:
    choices:
    - ip-netmask
    - fqdn
    - ip-range
    default: ip-nemask
    description:
    - This is the type of the object created.

commit:
    default: true
    description:
    - Commit configuration to the Firewall if it is changed.

address:
    default: None
    description:
    - IP address with or without mask, range, or FQDN.
    required: true

password:
    description:
    - Password credentials to use for authentication.
    required: true

username:
    default: admin
    description:
    - Username credentials to use for authentication.

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

description:
    default: None
    description:
    - Description of the address object.

address_name:
    default: None
    description:
    - Human readable name of the address.
    required: true