ansible-ffrgb/roles/unifi/tasks/main.yml

25 lines
458 B
YAML
Raw Normal View History

2020-06-17 20:53:51 +02:00
---
- name: Create data directories
file:
path: /var/lib/unifi
state: directory
- name: Run unifi container
docker_container:
name: unifi
image: jacobalberty/unifi:6.1.71
2020-06-17 20:53:51 +02:00
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"