Skip to content

馃摎 Parallel Ansible plays

TIL similarly to the gitlab-geo.yml playbook, you can run the GET all.yml playbook against multiple environments in parallel. This saves a lot of time when building Geo environments, since Ansible will run the tasks at the same time over all environments, halving the total time to play:

root@mjl_get:/workspaces/get/ansible# time \
ansible-playbook \
  -i environments/geo1/geo1p_1k_z987654/inventory/ \
  -i environments/geo1/geo1s_1k_z987654/inventory/ \
  playbooks/all.yml 
...
real    16m38.755s
user    0m49.539s
sys     0m21.136s
Edited by Mike Lockhart | GitLab