ansible / ansible.builtin / v2.4.4.0-1 / module / vcenter_license Manage VMware vCenter license keys | "added in version" 2.4 of ansible.builtin" Authors: Dag Wieers (@dagwieers) preview | supported by communityansible.builtin.vcenter_license (v2.4.4.0-1) — module
pip
Install with pip install ansible==2.4.4.0.post1
Add and delete vCenter license keys.
- 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
- 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
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
licenses: description: list of license keys after module executed returned: always sample: - f600d-21ae3-5592b-249e0-cc341 - 143cc-0e942-b2955-3ea12-d006f type: list