I know I can do this from a shell script. I wonder if I can do this in pure Ansible.
I was thinking about clusters recently. I know I can use the VM module to spin up a VM.
If I wanted 1,000 nodes, how would I loop inside Ansible for the nodes?
Using the shell I would do something like (not tested):
for i in `seq 000 999`
do
ansible-playbook -e nodename=“beofulfnode$i” create-a-node.yml
done