Thank you Abhikeet for the quick response, Will take a look into it.
On Wednesday, December 4, 2019 at 8:20:34 PM UTC+8, Abhijeet Kasurde wrote:
>
> Hi,
>
> You can take a look at `vmware_vm_info` module, it will return details
> about all VMs, Templates in the given folder. Here is basic example -
>
>
> - name: Gather all registered virtual machines
> vmware_vm_info:
> hostname: '{{ vcenter_hostname }}'
> username: '{{ vcenter_username }}'
> password: '{{ vcenter_password }}'
> delegate_to: localhost
> register: vminfo
>
> - debug:
> var: vminfo.virtual_machines
>
> On Wed, Dec 4, 2019 at 5:25 PM Ahamed Fazlul Wahab <[email protected]
> <javascript:>> wrote:
>
>> Hi All,
>>
>> I'm quite new to ansible, so apologies if I'm asking an obvious question.
>>
>> Is it possible for any ansible vmware module to fetch the list of VMs
>> running on a particular vmware esxi host. Also we need to extract certain
>> VM information of each VM (OS type, OS version, hostname., IP)
>>
>> Could this be done ? If yes, could someone tell me which module to use.
>>
>> Appreciate you help on this. Thank you.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/4de33f79-4d92-4887-98ae-af09d83d65dc%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/ansible-project/4de33f79-4d92-4887-98ae-af09d83d65dc%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks,
> Abhijeet Kasurde
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/4ef1b97f-d410-4611-b850-990299e23cec%40googlegroups.com.