Hi
Is it possible to spin up multiple vmware VMs at once with vmware_guest? I found something about using with_items to loop it, but it sounds like it is going to loop it meaning it would spin up the VMs sequentially? I haven’t tested this out yet, but it seems like that is what it would do right? What if I want to spin up 5 or 10 VMs at once, can that be done ? Or should I just plan on running 5 or 10 separate ansible-playlist commands at once to deploy multiple VMs at once?
Is it possible to spin up multiple vmware VMs at once with vmware_guest? I
found something about using with_items to loop it, but it sounds like it is
going to loop it meaning it would spin up the VMs sequentially? I haven't
tested this out yet, but it seems like that is what it would do right?
yes, with_items will run it sequentially unless you use async.
What if I want to spin up 5 or 10 VMs at once, can that be done ? Or
should I just plan on running 5 or 10 separate ansible-playlist commands at
once to deploy multiple VMs at once?
If you specify the new host in a playbook and do delegate_to: localhost on the create vm task they will run in parallel.
Default forks is at 5 so it will run 5 at a time unless you change forks so a higher value.