Run jellyfin
This commit is contained in:
parent
7148e3d514
commit
ada4e31472
4 changed files with 44 additions and 0 deletions
5
jellyfin.yml
Normal file
5
jellyfin.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
- hosts: webservers
|
||||||
|
roles:
|
||||||
|
- name: jellyfin
|
||||||
|
server_url: https://jf.comfycamp.space
|
|
@ -79,6 +79,9 @@ frontend www
|
||||||
acl host_git hdr(host) -i git.comfycamp.space
|
acl host_git hdr(host) -i git.comfycamp.space
|
||||||
use_backend forgejo if host_git
|
use_backend forgejo if host_git
|
||||||
|
|
||||||
|
acl host_jellyfin hdr(host) -i jf.comfycamp.space
|
||||||
|
use_backend jellyfin if host_jellyfin
|
||||||
|
|
||||||
acl host_grafana hdr(host) -i grafana.comfycamp.space
|
acl host_grafana hdr(host) -i grafana.comfycamp.space
|
||||||
use_backend grafana if host_grafana
|
use_backend grafana if host_grafana
|
||||||
|
|
||||||
|
@ -172,3 +175,7 @@ backend nextcloud
|
||||||
backend mta_sts
|
backend mta_sts
|
||||||
mode http
|
mode http
|
||||||
server s1 mta-sts-1:8080 check
|
server s1 mta-sts-1:8080 check
|
||||||
|
|
||||||
|
backend jellyfin
|
||||||
|
mode http
|
||||||
|
server s1 jellyfin:8096 check
|
||||||
|
|
7
roles/jellyfin/meta/argument_specs.yml
Normal file
7
roles/jellyfin/meta/argument_specs.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
argument_specs:
|
||||||
|
main:
|
||||||
|
options:
|
||||||
|
server_url:
|
||||||
|
type: str
|
||||||
|
required: true
|
25
roles/jellyfin/tasks/main.yml
Normal file
25
roles/jellyfin/tasks/main.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
- name: Create jellyfin volumes
|
||||||
|
become: true
|
||||||
|
community.docker.docker_volume:
|
||||||
|
name: "{{ item }}"
|
||||||
|
loop:
|
||||||
|
- jellyfin-cache
|
||||||
|
- jellyfin-config
|
||||||
|
- name: Run jellyfin
|
||||||
|
become: true
|
||||||
|
community.docker.docker_container:
|
||||||
|
name: jellyfin
|
||||||
|
image: jellyfin/jellyfin:10.9.11
|
||||||
|
networks:
|
||||||
|
- name: haproxy
|
||||||
|
user: "1000:1000"
|
||||||
|
volumes:
|
||||||
|
- jellyfin-cache:/cache
|
||||||
|
- jellyfin-config:/config
|
||||||
|
- /mnt/hdd/jellyfin:/media
|
||||||
|
devices:
|
||||||
|
- /dev/dri/
|
||||||
|
env:
|
||||||
|
JELLYFIN_PublishedServerUrl: "{{ server_url }}"
|
||||||
|
restart_policy: unless-stopped
|
Loading…
Reference in a new issue