This will create 2 servers, named q-helios-test-web01 and q-helios-test-web02, with group=web. It will always ensure a count of 2.
This will also be faster to build than your previous method, as it creates the servers in parallel, instead of serially. It also utilizes printf style formatting to define the name of the servers, which alleviates you having to manually increment the number in the host name.
Also, if you are indeed utilizing rackconnect, you may want to look at my example playbooks, that appropriately wait for RackConnect and Managed Cloud automation to complete before configuring the servers:
Thanks Matt! That wasn’t clear in the module documentation. Also thank you for the samples.
I would much rather spin the servers up in parallel. Is there a way I can spin up different server names like the list below in parallel? Or do I need different tasks for each group?
You will have to spin up servers in groups. Each group will happen in parallel. There is no existing functionality to spin up servers of different groups/names in parallel currently.
So you will have to do ‘web’, ‘app’, ‘pgm’ and ‘services’ as 4 different ‘rax’ invocations.