On Wednesday, 12 December 2018 12:32:30 CET Kai Stian Olstad wrote:
> If you use Ansible dynamic inventory you can easily change the inventory
> depending on the dynamic demand.
You don't even need to use dynamic inventory, this will do the same as your
script but let ansible do the forking.
#!/bin/bash
ansible-playbook -i $(seq -s '' -f '%03g,' ${1-1}) -f ${1-1} main.yml
And your your playbook must change to "hosts: all"
--
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/2018912.kWl1tZ9JdR%40x1.
For more options, visit https://groups.google.com/d/optout.