Want to pass a json variables containing couple of ansible hosts to a ansible-playbook so the variables can be looped in for hosts one by one.similar to
aditya,
aditya varma schrieb (13.10.2014 09:57 Uhr):
Want to pass a json variables containing couple of ansible hosts to a ansible-playbook so the variables can be looped in for hosts one by one.similar to
I think I do not understand clearly what you really want, but:
Can't you just use "hosts" for the hosts you want to loop over, like it is intendet to and - if the action should run on another server - use the delegate_to option?
http://docs.ansible.com/playbooks_delegation.html#delegation
Marc