unifi: add role for unifi controller

This commit is contained in:
Markus 2020-06-17 20:53:51 +02:00
parent e7b55ce809
commit 22f2a8e3db
2 changed files with 29 additions and 0 deletions

View 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"

View File

@ -42,6 +42,11 @@
roles: roles:
- docker - docker
- name: Setup unifi server
hosts: unifi.ffrgb
roles:
- unifi
- name: Setup tile server - name: Setup tile server
hosts: tiles.ffrgb hosts: tiles.ffrgb
roles: roles: