From 22e275c7b60614196c2d7563a5199144036a4347 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 22 Dec 2018 03:25:25 +0100 Subject: added openwrt role and config for elevate router --- roles/openwrt/image/templates/group.j2 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 roles/openwrt/image/templates/group.j2 (limited to 'roles/openwrt/image/templates/group.j2') diff --git a/roles/openwrt/image/templates/group.j2 b/roles/openwrt/image/templates/group.j2 new file mode 100644 index 00000000..cb433b88 --- /dev/null +++ b/roles/openwrt/image/templates/group.j2 @@ -0,0 +1,21 @@ +{{ 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 %} +{% 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: -- cgit v1.2.3