r/unifi: Switching to custom container image
The _linuxserver.io_ image for UniFi Network is deprecated. It sucked anyway. I've created a simple image based on Debian that installs the _unifi_ package from the upstream apt repository. This image doesn't require running anything as _root_, so it doesn't need a user namespace.
This commit is contained in:
@@ -1,48 +1,3 @@
|
||||
- name: ensure unifi group exists
|
||||
group:
|
||||
name: unifi
|
||||
gid: 911
|
||||
system: true
|
||||
state: present
|
||||
tags:
|
||||
- user
|
||||
- group
|
||||
- name: ensure unifi user exists
|
||||
user:
|
||||
name: unifi
|
||||
uid: 911
|
||||
group: unifi
|
||||
home: /var/lib/unifi
|
||||
createhome: false
|
||||
system: true
|
||||
state: present
|
||||
tags:
|
||||
- user
|
||||
|
||||
- name: ensure containers subuid is configured
|
||||
lineinfile:
|
||||
path: /etc/subuid
|
||||
create: true
|
||||
line: containers:39290640:1048576
|
||||
tags:
|
||||
- user
|
||||
- name: ensure containers subgid is configured
|
||||
lineinfile:
|
||||
path: /etc/subgid
|
||||
line: containers:39290640:1048576
|
||||
tags:
|
||||
- user
|
||||
|
||||
- name: ensure unifi storage path exists
|
||||
file:
|
||||
path: '{{ unifi_storage_path }}'
|
||||
owner: unifi
|
||||
group: unifi
|
||||
mode: u=rwx,go=
|
||||
state: directory
|
||||
tags:
|
||||
- datadir
|
||||
|
||||
- name: ensure unifi.container systemd unit exists
|
||||
template:
|
||||
src: unifi.container.j2
|
||||
|
||||
Reference in New Issue
Block a user