summaryrefslogtreecommitdiff
path: root/roles/installer/openwrt/image/templates/uci.j2
blob: 3cc480b286531bc8a79c7597cc33dff466810a98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{ ansible_managed | comment }}

{% 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 }}'
{%   endif %}
{% endfor %}

{% endfor %}