community.vmware.vmware_first_class_disk – Manage VMware vSphere First Class Disks¶
Note
This plugin is part of the community.vmware collection (version 1.7.0).
To install it use: ansible-galaxy collection install community.vmware
.
To use it in a playbook, specify: community.vmware.vmware_first_class_disk
.
New in version 1.7.0: of community.vmware
Synopsis¶
This module can be used to manage (create, delete, resize) VMware vSphere First Class Disks.
Requirements¶
The below requirements are needed on the host that executes this module.
python >= 2.6
PyVmomi
Parameters¶
Examples¶
- name: Create Disk
community.vmware.vmware_first_class_disk:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
datastore_name: '{{ datastore_name }}'
disk_name: '1GBDisk'
size: '1GB'
state: present
delegate_to: localhost
- name: Delete Disk
community.vmware.vmware_first_class_disk:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
datastore_name: '{{ datastore_name }}'
disk_name: 'FirstClassDisk'
state: absent
delegate_to: localhost
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Mario Lenz (@mariolenz)