projects
/
noc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc/Network: Document Funkfeuer subnet for realraum
[noc.git]
/
ansible
/
roles
/
openwrt-image
/
uci.j2
diff --git
a/ansible/roles/openwrt-image/uci.j2
b/ansible/roles/openwrt-image/uci.j2
index
78b3468
..
3cc480b
100644
(file)
--- a/
ansible/roles/openwrt-image/uci.j2
+++ b/
ansible/roles/openwrt-image/uci.j2
@@
-3,7
+3,13
@@
{% for section in item.value %}
config {{ section.name }}
{% for option, value in section.options.items() %}
{% for section in item.value %}
config {{ section.name }}
{% for option, value in section.options.items() %}
+{% if value is iterable and value is not string %}
+{% for v in value %}
+ list {{ option }} '{{ v }}'
+{% endfor %}
+{% else %}
option {{ option }} '{{ value }}'
option {{ option }} '{{ value }}'
+{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}