Merge pull request #39 from realraum/openwrt/roles-rename
[noc.git] / ansible / roles / openwrt / openwrt-image / templates / uci.j2
1 {{ ansible_managed | comment }}
2
3 {% for section in item.value %}
4 config {{ section.name }}
5 {% for option, value in section.options.items() %}
6 {%   if value is iterable and value is not string %}
7 {%      for v in value %}
8   list {{ option }} '{{ v }}'
9 {%      endfor %}
10 {%   else %}
11   option {{ option }} '{{ value }}'
12 {%   endif %}
13 {% endfor %}
14
15 {% endfor %}