Add file providers for jellyfin and HA

This commit is contained in:
Jake Howard 2021-01-13 22:12:58 +00:00
parent 969674772c
commit e1ea938d59
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 50 additions and 0 deletions

View file

@ -2,3 +2,6 @@ expose_ssh: true
traefik_private_ip: "{{ ansible_default_ipv4.address }}"
traefik_proxy_protocol_trusted_ips: 10.23.0.0/16
traefik_provider_jellyfin: true
traefik_provider_homeassistant: true

View file

@ -2,3 +2,6 @@ traefik_private_ip: "{{ wireguard.clients[ansible_fqdn].ip }}"
traefik_influx_db_dir: ./influxdb
traefik_proxy_protocol_trusted_ips: "{{ wireguard.cidr }}"
traefik_provider_jellyfin: false
traefik_provider_homeassistant: false

View file

@ -0,0 +1,12 @@
http:
routers:
router-homeassistant:
rule: Host(`homeassistant.jakehoward.tech`)
service: service-homeassistant
tls:
certResolver: le
services:
service-homeassistant:
loadBalancer:
servers:
- url: http://192.168.2.41:8123

View file

@ -0,0 +1,12 @@
http:
routers:
router-jellyfin:
rule: Host(`media.jakehoward.tech`)
service: service-jellyfin
tls:
certResolver: le
services:
service-jellyfin:
loadBalancer:
servers:
- url: http://10.23.1.29:8096

View file

@ -47,3 +47,23 @@
owner: "{{ docker_user.name }}"
notify: restart traefik
become: true
- name: Install homeassistant provider
template:
src: files/file-provider-homeassistant.yml
dest: /opt/traefik/traefik/conf/homeassistant.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
notify: restart traefik
when: traefik_router_homeassistant
become: true
- name: Install jellyfin provider
template:
src: files/file-provider-jellyfin.yml
dest: /opt/traefik/traefik/conf/jellyfin.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
notify: restart traefik
when: traefik_router_jellyfin
become: true