I realize strings are only allowed currently it seems, but I am wondering 
if there is another way to accomplish the same thing.
This is for file creation, so I realize I can loop thru with with_items, 
but then I can only loop on 1 list.  With the ability to have lists or 
dictionaries in var files, I think the options become significantly 
greater, without any more complication of current abilities.

This is all to create start with a single file, on a single box, but to 
have many loops, with potential for more then 1 or 2 layers.

ERROR:  must be stored as dictionary/hash: <type 'str'>

vars file
---
# file: files/base_vars
mgmt_access_networks = ['172.22.161.0/24', '172.27.0.0/16', 
'172.28.0.0/16', '198.18.0.0/15']


Jinja template:
{% for item in mgmt_access_networks %}
{{ item }}
{% endfor %}


-- 
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/fcb98c1f-aadf-4157-9a7d-2ab4f6757d09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to