I am trying to collect all vms in four different vcenters to create 
inventory and further act on the that inventory. Using vmware_vm_inventory, 
I can target one vcenter and hostname does not support a list:

plugin: vmware_vm_inventory strict: False hostname: 10.65.223.31 username: 
[email protected] password: XXXXXYYZZ validate_certs: False 
with_tags: True

I can make hostname as variable and provide it at runtime but then I will 
have run the playbook four times. 

Is there a way to collect vms from all four vcenters and then run tasks on 
them?

Thanks in advance.

-- 
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/0765e7f5-df87-4151-a33c-2d9c2fc4d826n%40googlegroups.com.

Reply via email to