The  VMware dynamic inventory plugin will track your running VMs, creating and 
updating an inventory (or list) of all VMs running in VMware: 
https://docs.ansible.com/ansible/latest/scenario_guides/vmware_scenarios/vmware_inventory.html
 
<https://docs.ansible.com/ansible/latest/scenario_guides/vmware_scenarios/vmware_inventory.html>

Once you have the VMs in inventory, you can use the VMware guest info module to 
retrieve information about the individual VMs:
https://docs.ansible.com/ansible/latest/modules/vmware_guest_info_module.html#vmware-guest-info-module
 
<https://docs.ansible.com/ansible/latest/modules/vmware_guest_info_module.html#vmware-guest-info-module>

You can also reach out to the working group for VMware on Freenode IRC - the 
channel is #ansible-vmware. 

Hope this helps,
Alicia

> On Dec 4, 2019, at 5:55 AM, Ahamed Fazlul Wahab <[email protected]> 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] 
> <mailto:[email protected]>.
> 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>.

-- 
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/4C6C4173-98B0-4AEB-8313-77AB2B299538%40redhat.com.

Reply via email to