Merge branch 'PurpleNinja225-add-jellyfin'

* PurpleNinja225-add-jellyfin:
  mv jellyfin to roles
This commit is contained in:
David Stephens 2022-05-28 17:53:56 +01:00
commit 105785cd37
4 changed files with 38 additions and 44 deletions

View file

@ -17,7 +17,6 @@
### ###
# Media Sourcing # Media Sourcing
jellyfin_enabled: false
youtubedlmaterial_enabled: false youtubedlmaterial_enabled: false
# System Management # System Management
@ -333,30 +332,6 @@ openhab_data_directory: "{{ docker_home }}/openhab"
openhab_port_http: "7777" openhab_port_http: "7777"
openhab_port_https: "7778" openhab_port_https: "7778"
###
### Jellyfin
###
# If you're paranoid, set permissions to "ro" so jellyfin won't ever be able to
# delete your files
jellyfin_available_externally: "false"
jellyfin_config_directory: "{{ docker_home }}/jellyfin/config"
jellyfin_movies_directory: "{{ movies_root }}"
jellyfin_movies_permissions: "rw"
jellyfin_music_directory: "{{ music_root }}"
jellyfin_music_permissions: "rw"
jellyfin_photos_directory: "{{ photos_root }}"
jellyfin_photos_permissions: "rw"
jellyfin_tv_directory: "{{ tv_root }}"
jellyfin_tv_permissions: "rw"
jellyfin_books_directory: "{{ books_root }}"
jellyfin_books_permissions: "rw"
jellyfin_audiobooks_directory: "{{ audiobooks_root }}"
jellyfin_audiobooks_permissions: "rw"
jellyfin_user_id: "0"
jellyfin_group_id: "0"
jellyfin_port_http: "8896"
jellyfin_port_https: "8928"
### ###
### Ubooquity ### Ubooquity
### ###

20
nas.yml
View file

@ -148,20 +148,10 @@
- homeassistant - homeassistant
when: (homeassistant_enabled | default(False)) when: (homeassistant_enabled | default(False))
- role: homebridge - role: jellyfin
tags: tags:
- homebridge - jellyfin
when: (homebridge_enabled | default(False)) when: (jellyfin_enabled | default(False))
- role: jackett
tags:
- jackett
when: (jackett_enabled | default(False))
- role: komga
tags:
- komga
when: (komga_enabled | default(False))
- role: lidarr - role: lidarr
tags: tags:
@ -366,10 +356,6 @@
when: (openhab_enabled | default(False)) when: (openhab_enabled | default(False))
tags: openhab tags: openhab
- import_tasks: tasks/jellyfin.yml
when: (jellyfin_enabled | default(False))
tags: jellyfin
- import_tasks: tasks/krusader.yml - import_tasks: tasks/krusader.yml
when: (krusader_enabled | default(False)) when: (krusader_enabled | default(False))
tags: krusader tags: krusader

View file

@ -0,0 +1,33 @@
---
# enable or disable the application
jellyfin_enabled: false
jellyfin_available_externally: "false"
# directories
jellyfin_config_directory: "{{ docker_home }}/jellyfin/config"
jellyfin_movies_directory: "{{ movies_root }}"
jellyfin_music_directory: "{{ music_root }}"
jellyfin_photos_directory: "{{ photos_root }}"
jellyfin_tv_directory: "{{ tv_root }}"
jellyfin_books_directory: "{{ books_root }}"
jellyfin_audiobooks_directory: "{{ audiobooks_root }}"
# permissions
jellyfin_movies_permissions: "rw"
jellyfin_music_permissions: "rw"
jellyfin_photos_permissions: "rw"
jellyfin_tv_permissions: "rw"
jellyfin_books_permissions: "rw"
jellyfin_audiobooks_permissions: "rw"
# uid / gid
jellyfin_user_id: "0"
jellyfin_group_id: "0"
# network
jellyfin_hostname: "jellyfin"
jellyfin_port_http: "8896"
jellyfin_port_https: "8928"
# specs
jellyfin_memory: "1g"

View file

@ -27,10 +27,10 @@
PUID: "{{ jellyfin_user_id }}" PUID: "{{ jellyfin_user_id }}"
PGID: "{{ jellyfin_group_id }}" PGID: "{{ jellyfin_group_id }}"
restart_policy: unless-stopped restart_policy: unless-stopped
memory: 1g memory: "{{ jellyfin_memory }}"
labels: labels:
traefik.enable: "{{ jellyfin_available_externally }}" traefik.enable: "{{ jellyfin_available_externally }}"
traefik.http.routers.jellyfin.rule: "Host(`jellyfin.{{ ansible_nas_domain }}`)" traefik.http.routers.jellyfin.rule: "Host(`{{ jellyfin_hostname }}.{{ ansible_nas_domain }}`)"
traefik.http.routers.jellyfin.tls.certresolver: "letsencrypt" traefik.http.routers.jellyfin.tls.certresolver: "letsencrypt"
traefik.http.routers.jellyfin.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.jellyfin.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.jellyfin.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.routers.jellyfin.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"