X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=ansible%2Froles%2Fopenwrt-image%2Fgroup.j2;h=cb433b88e74cf40834b8256267cbcd682d44909f;hb=462d5291a691cd8bd800a79b5feddcfae8ffa2e2;hp=850e5dab28060dd9e908de1361ae283c7cd1ad56;hpb=a1020efad422807a245a3c6d27a81afd7e870103;p=noc.git diff --git a/ansible/roles/openwrt-image/group.j2 b/ansible/roles/openwrt-image/group.j2 index 850e5da..cb433b8 100644 --- a/ansible/roles/openwrt-image/group.j2 +++ b/ansible/roles/openwrt-image/group.j2 @@ -13,7 +13,9 @@ network:x:101: {{ name }}:x:{{ opt.id | default(loop.index + 110) }}: {% endif %} {% endfor %} +{% if openwrt_groups is defined %} {% for name, opt in openwrt_groups.items() %} {{ name }}:x:{{ opt.id | default(loop.index + 200) }}: {% endfor %} +{% endif %} nogroup:x:65534: