forked from FF-RGB/ansible
unifi: add role for unifi controller
This commit is contained in:
parent
e7b55ce809
commit
22f2a8e3db
24
roles/unifi/tasks/main.yml
Normal file
24
roles/unifi/tasks/main.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
|
||||
- name: Create data directories
|
||||
file:
|
||||
path: /var/lib/unifi
|
||||
state: directory
|
||||
|
||||
- name: Run unifi container
|
||||
docker_container:
|
||||
name: unifi
|
||||
image: jacobalberty/unifi:stable
|
||||
env:
|
||||
RUNAS_UID0: "false"
|
||||
TZ: "Europe/Berlin"
|
||||
init: yes
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "8443:8443"
|
||||
- "3478:3478/udp"
|
||||
- "10001:10001/udp"
|
||||
restart_policy: unless-stopped
|
||||
state: started
|
||||
volumes:
|
||||
- "/var/lib/unifi:/unifi"
|
Loading…
Reference in New Issue
Block a user