Deprecated

Removed in 2.0.0

i

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

community.network.panos_lic (1.3.7) — module

apply authcode to a device/instance

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

Install collection

Install with ansible-galaxy collection install community.network:==1.3.7


Add to requirements.yml

  collections:
    - name: community.network
      version: 1.3.7

Description

Apply an authcode to a device.

The authcode should have been previously registered on the Palo Alto Networks support portal.

The device should have Internet access.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - hosts: localhost
      connection: local
      tasks:
        - name: Fetch license
          community.network.panos_lic:
            ip_address: "192.168.1.1"
            password: "paloalto"
            auth_code: "IBADCODE"
          register: result
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: Display serialnumber (if already registered)
      ansible.builtin.debug:
        var: "{{result.serialnumber}}"

Inputs

    
force:
    default: 'false'
    description:
    - whether to apply authcode even if device is already licensed
    required: false
    type: bool

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

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

auth_code:
    description:
    - authcode to be applied
    required: true

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

Outputs

serialnumber:
  description: serialnumber of the device in case that it has been already registered
  returned: success
  sample: 973080716
  type: str