paloaltonetworks / paloaltonetworks.panos / 2.19.1 / module / panos_vm_auth_key Create a VM auth key for VM-Series bootstrapping | "added in version" 1.1.0 of paloaltonetworks.panos" Authors: Garfield Lee Freeman (@shinmog)paloaltonetworks.panos.panos_vm_auth_key (2.19.1) — module
Install with ansible-galaxy collection install paloaltonetworks.panos:==2.19.1
collections: - name: paloaltonetworks.panos version: 2.19.1
This module will ask Panorama to create a VM auth key for VM-Series bootstrapping.
- name: Create an 8 hour VM auth key paloaltonetworks.panos.panos_vm_auth_key: provider: '{{ provider }}' hours: 8 register: res
- debug: msg: 'Auth key {{ res.authkey }} expires at {{ res.expires }}'
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 hours: default: 24 description: - The number of hours the VM auth key should be valid for. type: int 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 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
authkey: description: The VM auth key. returned: success type: str expires: description: Auth key expiration date returned: success sample: 2020/02/14 01:02:03 type: str