I got this pb but it is only working for single vcenter and I have to put the esxi hosts into a host file.
Is it possible to connect to multiple vcenters and lookup all the esxi hosts and connect to them instead of using host file?
vars.yml
vcenter_hostname: vcenter1.domain.com
hostname: “{{ inventory_hostname }}”
vcenter_creds.yml has my credentials and I run the pb with --ask-vault-pass