On 21. feb. 2017 17:54, Acrobis Nubian wrote:
Thanks Kai! That's another way of looking at the problem :) Much
appreciated!

But also I'm still curious, if I'd need to do a loop in a loop like I
intended in the previous example, is it possible to do that in Ansible?

To do a loop in a loop in Ansible, you need to put the inner loop in a yaml file, and the use - include: with a loop and loop_control.
You can see an example here:
https://docs.ansible.com/ansible/playbooks_loops.html#loop-control

--
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/6d3c5fd8-96c0-a381-1b94-52bcf13926c0%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to