It seems as though this is not possible, but it could really allow for using jinja’s looping function. I realize the with_items functionality, but I would like to use both at the same time, it would greatly simplify my templates, and was wondering if this was something that is possible another way?
from vars file:
mgmt_access_networks = [‘172.0.0.0.0/24’, ‘172.1.0.0/16’]
when trying to run:
base_vars must be stored as dictionary/hash: <type ‘str’>
from jijna template:
{% for item in mgmt_access_networks %}
{{ item }}
{% endfor %}
what I’m trying to do is loop thru file creation, without having to create a “custom” template for each file. The with_item functionality seems to get me the loop, but looks as though I can only alter 1 variable per file without access to more jinja functionality.
Thanks,
Greg