ansible.builtin.panos_interface (v2.4.3.0-1) — module

configure data-port network interface for DHCP

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

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

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.4.3.0.post1

Description

Configure data-port (DP) network interface for DHCP. By default DP interfaces are static.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: enable DHCP client on ethernet1/1 in zone public
  interface:
    password: "admin"
    ip_address: "192.168.1.1"
    if_name: "ethernet1/1"
    zone_name: "public"
    create_default_route: "yes"

Inputs

    
commit:
    default: true
    description:
    - Commit if changed

if_name:
    description:
    - Name of the interface to configure.
    required: true

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

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

zone_name:
    description: 'Name of the zone for the interface. If the zone does not exist it is
      created but if the zone exists and it is not of the layer3 type the operation will
      fail.

      '
    required: true

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

create_default_route:
    default: 'false'
    description:
    - Whether or not to add default route with router learned via DHCP.