Restrictive jinja disallowed "len()"
This commit is contained in:
parent
f38b34d8c4
commit
c983f6202b
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ end-volume
|
||||||
|
|
||||||
volume mirror-0
|
volume mirror-0
|
||||||
type cluster/replicate
|
type cluster/replicate
|
||||||
subvolumes {% for i in range(len(servers)) %}vol-#{{i}} {% endfor %}
|
subvolumes {% for server in servers %}vol-#{{loop.index}} {% endfor %}
|
||||||
{% if servers.index(ansible_hostname) %}
|
{% if servers.index(ansible_hostname) %}
|
||||||
option read-subvolume vol-{{ servers.index(ansible_hostname)}}
|
option read-subvolume vol-{{ servers.index(ansible_hostname)}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue