paloaltonetworks / paloaltonetworks.panos / 2.19.1 / module / panos_lic apply authcode to a device/instance | "added in version" 1.0.0 of paloaltonetworks.panos" Authors: Luigi Mori (@jtschichold), Ivan Bojer (@ivanbojer)paloaltonetworks.panos.panos_lic (2.19.1) — module
Install with ansible-galaxy collection install paloaltonetworks.panos:==2.19.1
collections: - name: paloaltonetworks.panos version: 2.19.1
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.
- name: Activate my authcode paloaltonetworks.panos.panos_lic: provider: '{{ provider }}' auth_code: "IBADCODE" register: result
- debug: msg: 'Serial number is {{ result.serialnumber }}'
port: default: 443 description: - B(Deprecated) - Use I(provider) to specify PAN-OS connectivity instead. - HORIZONTALLINE - The port number to connect to the PAN-OS device on. type: int force: default: false description: - Whether to apply authcode even if device is already licensed / has a serial number. - For example, set the force option to "true" when adding extra subscription or features licenses to a device which already has a serial number. type: bool api_key: description: - B(Deprecated) - Use I(provider) to specify PAN-OS connectivity instead. - HORIZONTALLINE - The API key to use instead of generating it using I(username) / I(password). type: str password: description: - B(Deprecated) - Use I(provider) to specify PAN-OS connectivity instead. - HORIZONTALLINE - The password to use for authentication. This is ignored if I(api_key) is specified. type: str provider: description: - A dict object containing connection details. suboptions: api_key: description: - The API key to use instead of generating it using I(username) / I(password). type: str ip_address: description: - The IP address or hostname of the PAN-OS device being configured. type: str password: description: - The password to use for authentication. This is ignored if I(api_key) is specified. type: str port: default: 443 description: - The port number to connect to the PAN-OS device on. type: int serial_number: description: - The serial number of a firewall to use for targeted commands. If I(ip_address) is not a Panorama PAN-OS device, then this param is ignored. type: str username: default: admin description: - The username to use for authentication. This is ignored if I(api_key) is specified. type: str type: dict version_added: 1.0.0 version_added_collection: paloaltonetworks.panos username: default: admin description: - B(Deprecated) - Use I(provider) to specify PAN-OS connectivity instead. - HORIZONTALLINE - The username to use for authentication. This is ignored if I(api_key) is specified. type: str auth_code: description: - authcode to be applied. - If this is not given, then "request license fetch" is performed instead. type: str ip_address: description: - B(Deprecated) - Use I(provider) to specify PAN-OS connectivity instead. - HORIZONTALLINE - The IP address or hostname of the PAN-OS device being configured. type: str
licenses: description: List of PAN-OS licenses (as dicts) as a result of this module's execution. returned: when not using auth_code type: list serialnumber: description: PAN-OS serial number when this module began execution. returned: success sample: 973080716 type: str