Compare commits

...

5 commits

Author SHA1 Message Date
max
ec8d79e596 remove apache role 2022-01-06 11:33:48 +00:00
Maximilian Deubel
5dda159d2d use docker_setup role 2022-01-06 11:04:35 +01:00
Max
419b89af37 role to playbook 2022-01-06 11:35:43 +01:00
Max
532c189ce7 change path 2022-01-06 11:29:32 +01:00
Maximilian Deubel
911fe28e06 add unifi controller role and playbook 2022-01-05 21:19:49 +01:00
2 changed files with 35 additions and 0 deletions

View file

@ -39,3 +39,6 @@
- name: Pottwal specific setup - name: Pottwal specific setup
import_playbook: pottwal.yml import_playbook: pottwal.yml
- name: Unifi specific setup
import_playbook: unifi.yml

32
unifi.yml Normal file
View file

@ -0,0 +1,32 @@
---
# this is for a dedicated vm just hosting the unifi controller.
- hosts: unifi.n39.eu
become: true
vars:
ansible_python_interpreter: /usr/bin/python3
roles:
- role: docker_setup
vars:
docker_data_root: "/srv/docker"
tasks:
- name: Setup the docker container for unifi-controller
docker_container:
name: unifi-controller
image: "jacobalberty/unifi:v6.5.55"
state: started
restart_policy: unless-stopped
container_default_behavior: no_defaults
env:
TZ: "Europe/Berlin"
# These fixed ports are needed.
# https://help.ui.com/hc/en-us/articles/218506997-UniFi-Ports-Used
ports:
- "8080:8080/tcp" # Device command/control
- "8443:8443/tcp" # Web interface + API
- "8843:8843/tcp" # HTTPS portal
- "8880:8880/tcp" # HTTP portal
- "3478:3478/udp" # STUN service
- "6789:6789/tcp" # Speed Test (unifi5 only)
volumes:
- "/srv/data/unifi-controller/data:/unifi/data"
- "/srv/data/unifi-controller/log:/unifi/log"