Add jellyfin to ansible
This commit is contained in:
parent
532d357197
commit
4a6fc7753f
7 changed files with 45 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -14,6 +14,7 @@ diagram_assets/
|
||||||
/gitea-runner/
|
/gitea-runner/
|
||||||
/homebox/
|
/homebox/
|
||||||
/influxdb/
|
/influxdb/
|
||||||
|
/jellyfin/
|
||||||
/telegraf/
|
/telegraf/
|
||||||
/umami/
|
/umami/
|
||||||
/uptime-kuma/
|
/uptime-kuma/
|
||||||
|
@ -26,6 +27,7 @@ diagram_assets/
|
||||||
/caddy/config/conf.002.d/coder.serguzim.me.conf
|
/caddy/config/conf.002.d/coder.serguzim.me.conf
|
||||||
/caddy/config/conf.002.d/git.serguzim.me.conf
|
/caddy/config/conf.002.d/git.serguzim.me.conf
|
||||||
/caddy/config/conf.002.d/inventory.serguzim.me.conf
|
/caddy/config/conf.002.d/inventory.serguzim.me.conf
|
||||||
|
/caddy/config/conf.002.d/media.serguzim.me.conf
|
||||||
/caddy/config/conf.002.d/tick.serguzim.me.conf
|
/caddy/config/conf.002.d/tick.serguzim.me.conf
|
||||||
/caddy/config/conf.002.d/status.serguzim.me.conf
|
/caddy/config/conf.002.d/status.serguzim.me.conf
|
||||||
/caddy/config/conf.002.d/webdis.huck.serguzim.me.conf
|
/caddy/config/conf.002.d/webdis.huck.serguzim.me.conf
|
||||||
|
|
|
@ -21,6 +21,11 @@ compose_file_env:
|
||||||
env_file:
|
env_file:
|
||||||
- service.env
|
- service.env
|
||||||
|
|
||||||
|
compose_file_user:
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
user: "{{ compose.user }}"
|
||||||
|
|
||||||
compose_file_ports:
|
compose_file_ports:
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
- forgejo-runner
|
- forgejo-runner
|
||||||
- homebox
|
- homebox
|
||||||
- influxdb
|
- influxdb
|
||||||
|
- jellyfin
|
||||||
- telegraf
|
- telegraf
|
||||||
- umami
|
- umami
|
||||||
- uptime-kuma
|
- uptime-kuma
|
||||||
|
|
7
_ansible/roles/jellyfin/tasks/main.yml
Normal file
7
_ansible/roles/jellyfin/tasks/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
- name: Deploy {{ svc.name }}
|
||||||
|
tags:
|
||||||
|
- jellyfin
|
||||||
|
- media
|
||||||
|
block:
|
||||||
|
- import_tasks: deploy-common-service.yml
|
26
_ansible/roles/jellyfin/vars/main.yml
Normal file
26
_ansible/roles/jellyfin/vars/main.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
svc:
|
||||||
|
domain: "media.serguzim.me"
|
||||||
|
name: jellyfin
|
||||||
|
port: 8096
|
||||||
|
db:
|
||||||
|
host: "{{ postgres.host }}"
|
||||||
|
port: "{{ postgres.port }}"
|
||||||
|
|
||||||
|
svc_env:
|
||||||
|
JELLYFIN_PublishedServerUrl: "https://{{ svc. domain }}"
|
||||||
|
|
||||||
|
compose:
|
||||||
|
watchtower: true
|
||||||
|
image: jellyfin/jellyfin
|
||||||
|
user: 8096:8096
|
||||||
|
env: true
|
||||||
|
volumes:
|
||||||
|
- config:/config
|
||||||
|
- cache:/cache
|
||||||
|
- media:/media
|
||||||
|
file:
|
||||||
|
volumes:
|
||||||
|
config:
|
||||||
|
cache:
|
||||||
|
media:
|
||||||
|
|
|
@ -9,6 +9,10 @@
|
||||||
{%- set compose_file = compose_file | combine(compose_file_ports, recursive=True) -%}
|
{%- set compose_file = compose_file | combine(compose_file_ports, recursive=True) -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if compose.user | default(False) -%}
|
||||||
|
{%- set compose_file = compose_file | combine(compose_file_user, recursive=True) -%}
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if compose.volumes | default(False) -%}
|
{%- if compose.volumes | default(False) -%}
|
||||||
{%- set compose_file = compose_file | combine(compose_file_volumes, recursive=True) -%}
|
{%- set compose_file = compose_file | combine(compose_file_volumes, recursive=True) -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
media.serguzim.me {
|
|
||||||
import default
|
|
||||||
reverse_proxy host.docker.internal:3014
|
|
||||||
}
|
|
Reference in a new issue