community.vmware.vmware_guest_disk_facts – Gather facts about disks of given virtual machine¶
Note
This plugin is part of the community.vmware collection (version 1.9.0).
To install it use: ansible-galaxy collection install community.vmware
.
To use it in a playbook, specify: community.vmware.vmware_guest_disk_facts
.
DEPRECATED¶
- Removed in
major release after 2021-12-01
- Why
Deprecated in favour of community.vmware.vmware_guest_disk_info module.
- Alternative
Use community.vmware.vmware_guest_disk_info instead.
Synopsis¶
This module can be used to gather facts about disks belonging to given virtual machine.
All parameters and VMware object names are case sensitive.
Requirements¶
The below requirements are needed on the host that executes this module.
python >= 2.6
PyVmomi
Parameters¶
Notes¶
Note
Tested on vSphere 6.0 and 6.5.
Disk UUID information is added in version 2.8.
Additional information about guest disk backings added in version 2.8.
Examples¶
- name: Gather disk facts from virtual machine using UUID
community.vmware.vmware_guest_disk_facts:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: ha-datacenter
uuid: 421e4592-c069-924d-ce20-7e7533fab926
delegate_to: localhost
register: disk_facts
- name: Gather disk facts from virtual machine using name
community.vmware.vmware_guest_disk_facts:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: ha-datacenter
name: VM_225
delegate_to: localhost
register: disk_facts
- name: Gather disk facts from virtual machine using moid
community.vmware.vmware_guest_disk_facts:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: ha-datacenter
moid: vm-42
delegate_to: localhost
register: disk_facts
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module will be removed in a major release after 2021-12-01. [deprecated]
For more information see DEPRECATED.
Authors¶
Abhijeet Kasurde (@Akasurde) <akasurde@redhat.com>