X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;ds=sidebyside;f=ansible%2Froles%2Fopenwrt-image%2Fgroup.j2;fp=ansible%2Froles%2Fopenwrt-image%2Fgroup.j2;h=850e5dab28060dd9e908de1361ae283c7cd1ad56;hb=a1020efad422807a245a3c6d27a81afd7e870103;hp=0000000000000000000000000000000000000000;hpb=bea744b734380a1debabc399af25775467e55278;p=noc.git diff --git a/ansible/roles/openwrt-image/group.j2 b/ansible/roles/openwrt-image/group.j2 new file mode 100644 index 0000000..850e5da --- /dev/null +++ b/ansible/roles/openwrt-image/group.j2 @@ -0,0 +1,19 @@ +{{ ansible_managed | comment }} +root:x:0: +daemon:x:1: +adm:x:4: +mail:x:8: +audio:x:29: +www-data:x:33: +ftp:x:55: +users:x:100: +network:x:101: +{% for name, opt in openwrt_users.items() %} +{% if 'group_id' not in opt %} +{{ name }}:x:{{ opt.id | default(loop.index + 110) }}: +{% endif %} +{% endfor %} +{% for name, opt in openwrt_groups.items() %} +{{ name }}:x:{{ opt.id | default(loop.index + 200) }}: +{% endfor %} +nogroup:x:65534: