On 05.12.2018 16:45, Tuyen Nguyen wrote:
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.
--
Kai Stian Olstad
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/bf6665b3a0c41f4320a4c2ccb2bf8276%40olstad.com.
For more options, visit https://groups.google.com/d/optout.