ansible.builtin.vcenter_license (v2.4.4.0-1) — module

Manage VMware vCenter license keys

| "added in version" 2.4 of ansible.builtin"

Authors: Dag Wieers (@dagwieers)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.4.4.0.post1

Description

Add and delete vCenter license keys.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add a new vCenter license
  vcenter_license:
    hostname: '{{ vcenter_hostname }}'
    username: '{{ vcenter_username }}'
    password: '{{ vcenter_password }}'
    license: f600d-21ae3-5592b-249e0-cc341
    state: present
  delegate_to: localhost
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove an (unused) vCenter license
  vmware_license:
    hostname: '{{ vcenter_hostname }}'
    username: '{{ vcenter_username }}'
    password: '{{ vcenter_password }}'
    license: f600d-21ae3-5592b-249e0-cc341
    state: absent
  delegate_to: localhost

Inputs

    
state:
    choices:
    - absent
    - present
    default: present
    description:
    - Whether to add (C(present)) or remove (C(absent)) the license key.

labels:
    description:
    - The optional labels of the license key to manage in vSphere vCenter.
    - This is dictionary with key/value pair.

license:
    description:
    - The license key to manage in vSphere vCenter.
    required: true

hostname:
    description:
    - The hostname or IP address of the vSphere vCenter.
    required: true

password:
    aliases:
    - pass
    - pwd
    description:
    - The password to log into to the vSphere vCenter.
    required: true

username:
    aliases:
    - admin
    - user
    description:
    - The username to log into the vSphere vCenter.
    required: true

Outputs

licenses:
  description: list of license keys after module executed
  returned: always
  sample:
  - f600d-21ae3-5592b-249e0-cc341
  - 143cc-0e942-b2955-3ea12-d006f
  type: list