# Unable to gather datastore facts with vmware\_datastore\_info module

**URL:** <https://forum.ansible.com/t/unable-to-gather-datastore-facts-with-vmware-datastore-info-module/36777>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [June 27, 2022, 9:10am UTC](https://forum.ansible.com/t/unable-to-gather-datastore-facts-with-vmware-datastore-info-module/36777 "2022-06-27T09:10:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pugazhendhi\_Ramakris](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pugazhendhi\_Ramakris](https://forum.ansible.com/u/Pugazhendhi_Ramakris)\
**Post date:** [June 27, 2022, 9:10am UTC](https://forum.ansible.com/t/unable-to-gather-datastore-facts-with-vmware-datastore-info-module/36777/1 "2022-06-27T09:10:23Z")

</div>

I’m trying to collect the VMware datastore info from the ansible module “community.vmware.vmware\_datastore\_info” with the below task and debug the same:

- name: Gather info from datacenter about specific datastore  
community.vmware.vmware\_datastore\_info:  
hostname: ‘{{ vcenter\_hostname }}’  
username: ‘{{ username }}’  
password: ‘{{ password }}’  
datacenter\_name: ‘{{ datacenter\_name }}’  
name: ENV04  
validate\_certs: False  
delegate\_to: localhost  
register: info

- debug:  
msg: “{{ info }}”  
The debug task is returning the below output:

TASK [Gather info from datacenter about specific datastore] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [172.17.92.2 → localhost]

TASK [debug] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [172.17.92.2] =\> {  
“msg”: {  
“changed”: false,  
“datastores”: ,  
“failed”: false  
}  
}  
Rather than the one mentioned in the ansible-doc for this module:

RETURN VALUES:

- datastores  
metadata about the available datastores

returned: always  
sample:

- accessible: true  
capacity: 5497558138880  
datastore\_cluster: datacluster0  
freeSpace: 4279000641536  
maintenanceMode: normal  
multipleHostAccess: true  
name: datastore3  
nfs\_path: /vol/datastore3  
nfs\_server: nfs\_server1  
provisioned: 1708109410304  
type: NFS  
uncommitted: 489551912960  
url: ds:///vmfs/volumes/420b3e73-67070776/  
Can anyone suggest what was the issue, as I was getting the expected output before and now it is not coming.
