ansible / ansible.builtin / v2.3.0.0-1 / module / panos_lic apply authcode to a device/instance | "added in version" 2.3 of ansible.builtin" Authors: Luigi Mori (@jtschichold), Ivan Bojer (@ivanbojer) preview | supported by communityansible.builtin.panos_lic (v2.3.0.0-1) — module
pip
Install with pip install ansible==2.3.0.0.post1
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.
- hosts: localhost connection: local tasks: - name: fetch license panos_lic: ip_address: "192.168.1.1" password: "paloalto" auth_code: "IBADCODE" register: result
- name: Display serialnumber (if already registered) debug: var: "{{result.serialnumber}}"
force: default: 'false' description: - whether to apply authcode even if device is already licensed required: false password: description: - password for authentication required: true username: default: admin description: - username for authentication required: false auth_code: description: - authcode to be applied required: true ip_address: description: - IP address (or hostname) of PAN-OS device required: true
serialnumber: description: serialnumber of the device in case that it has been already registered returned: success sample: 973080716 type: string