nsxt_licenses – Add a new license key

New in version 2.7.

Synopsis

  • This will add a license key to the system. The API supports adding only one license key for each license edition type - Standard, Advanced or Enterprise. If a new license key is tried to add for an edition for which the license key already exists, then this API will return an error.

Parameters

Parameter Choices/Defaults Comments
hostname
string / required
Deployed NSX manager hostname.
license_key
string / required
license key
password
string / required
The password to authenticate with the NSX manager.
state
- / required
    Choices:
  • present
  • absent
State can be either 'present' or 'absent'. 'present' is used to create or update resource. 'absent' is used to delete resource.
username
string / required
The username to authenticate with the NSX manager.

Examples

- name: Add license
  nsxt_licenses:
      hostname: "10.192.167.137"
      username: "admin"
      password: "Admin!23Admin"
      validate_certs: False
      license_key: "11111-22222-33333-44444-55555"
      state: present

Status

  • This module is not guaranteed to have a backwards compatible interface. [preview]

  • This module is maintained by the Ansible Community. [community]

Authors

  • Rahul Raghuvanshi