Hi there - I’m trying to use the range keyword in a Jinja2 template in ansible 0.9, and I get this error message: ‘range is undefined’
I’m using ansible 0.9 on Python 2.7.3 with the Jinja2 package version /usr/local/lib/python2.7/dist-packages/Jinja2-2.6-py2.7.egg
The snippet I’m trying to use is:
{% for i in range(244, 254) %}
auto br-lxc-{{ i }}
iface br-lxc-{{ i }} inet static
{% endfor %}
Any pointers will be much appreciated!
Cheers
Arun