vmware_datastore_info – Gather info about datastores available in given vCenter¶
New in version 2.5.
Synopsis¶
This module can be used to gather information about datastores in VMWare infrastructure.
All values and VMware object names are case sensitive.
This module was called
vmware_datastore_facts
before Ansible 2.9. The usage did not change.
Aliases: vmware_datastore_facts
Requirements¶
The below requirements are needed on the host that executes this module.
python >= 2.6
PyVmomi
Parameters¶
Examples¶
- name: Gather info from standalone ESXi server having datacenter as 'ha-datacenter'
vmware_datastore_info:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
datacenter_name: '{{ datacenter_name }}'
validate_certs: no
delegate_to: localhost
register: info
- name: Gather info from datacenter about specific datastore
vmware_datastore_info:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
datacenter_name: '{{ datacenter_name }}'
name: datastore1
delegate_to: localhost
register: info
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]
Authors¶
Tim Rightnour (@garbled1)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.