Add jellyfin to ansible
This commit is contained in:
parent
532d357197
commit
4a6fc7753f
7 changed files with 45 additions and 4 deletions
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:
|
||||
|
Reference in a new issue