Gather info about disks of given virtual machine
- This module can be used to gather information about disks belonging to given virtual machine.
- All parameters and VMware object names are case sensitive.
Note
- All modules requires API write access and hence is not supported on a free ESXi license.
- name: Gather disk info from virtual machine using UUID
community.vmware.vmware_guest_disk_info:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: ha-datacenter
uuid: 421e4592-c069-924d-ce20-7e7533fab926
delegate_to: localhost
register: disk_info
- name: Gather disk info from virtual machine using name
community.vmware.vmware_guest_disk_info:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: ha-datacenter
name: VM_225
delegate_to: localhost
register: disk_info
- name: Gather disk info from virtual machine using moid
community.vmware.vmware_guest_disk_info:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: ha-datacenter
moid: vm-42
delegate_to: localhost
register: disk_info
Common return values are documented here, the following are the fields unique to this module:
- Abhijeet Kasurde (@Akasurde) <[email protected]>