--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4de33f79-4d92-4887-98ae-af09d83d65dc%40googlegroups.com.
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 machinesvmware_vm_info:hostname: '{{ vcenter_hostname }}'username: '{{ vcenter_username }}'password: '{{ vcenter_password }}'delegate_to: localhostregister: vminfo- debug:var: vminfo.virtual_machines
On Wed, Dec 4, 2019 at 5:25 PM Ahamed Fazlul Wahab <afws...@gmail.com> 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 ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4de33f79-4d92-4887-98ae-af09d83d65dc%40googlegroups.com.
--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 ansible-proje...@googlegroups.com.