Last active
March 28, 2020 18:33
-
-
Save phips/1e895096ca70c85ad3c870b38d6677eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: vm_dummy_group | |
gather_facts: no | |
tasks: | |
- name: Test loop | |
debug: | |
msg: "Spinning up VM number {{ item }}" | |
with_sequence: start={{ start }} end={{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vm_dummy_group] | |
host1 | |
host2 | |
host3 | |
host4 | |
host5 | |
[hosts] | |
host1 ansible_connection=local start=1 end=10 | |
host2 ansible_connection=local start=11 end=20 | |
host3 ansible_connection=local start=21 end=30 | |
host4 ansible_connection=local start=31 end=40 | |
host5 ansible_connection=local start=41 end=50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternative, courtesy of @bcoca on ansible-project…