From 9834d49004c32a5a8b9b6d550ed475ca10ac4246 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 14 Mar 2020 14:25:13 +0100 Subject: [PATCH] update to v10.5 and add cache dir config --- defaults/main.yml | 5 +++-- tasks/install.yml | 1 + templates/etc/systemd/system/jellyfin.service.j2 | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 406f21e..2646b36 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,5 +1,5 @@ --- -jellyfin_version: 10.3.7 +jellyfin_version: 10.5.0 jellyfin_user: jellyfin jellyfin_user_home: "/home/{{ jellyfin_user }}" jellyfin_group: "{{ jellyfin_user }}" @@ -9,6 +9,7 @@ jellyfin_base_dir: "/opt/jellyfin" jellyfin_conf_dir: "{{ jellyfin_base_dir }}/config" jellyfin_data_dir: "{{ jellyfin_base_dir }}/data" jellyfin_log_dir: "{{ jellyfin_base_dir }}/log" +jellyfin_cache_dir: "{{ jellyfin_base_dir }}/cache" jellyfin_packages_extra: [] @@ -19,7 +20,7 @@ jellyfin_packages_extra: [] jellyfin_log_level_console: Fatal jellyfin_log_level_file: Information -jellyfin_selinux_fcontext: +jellyfin_selinux_fcontext: - target: "{{ jellyfin_log_dir }}(/.*)?" setype: var_log_t jellyfin_selinux_restorecon: diff --git a/tasks/install.yml b/tasks/install.yml index c2f5f81..39b8804 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -12,6 +12,7 @@ - "{{ jellyfin_conf_dir }}" - "{{ jellyfin_data_dir }}" - "{{ jellyfin_log_dir }}" + - "{{ jellyfin_cache_dir }}" become: True become_user: root diff --git a/templates/etc/systemd/system/jellyfin.service.j2 b/templates/etc/systemd/system/jellyfin.service.j2 index e0652c9..3b8bd5a 100644 --- a/templates/etc/systemd/system/jellyfin.service.j2 +++ b/templates/etc/systemd/system/jellyfin.service.j2 @@ -9,12 +9,13 @@ Type=simple Environment=JELLYFIN_DATA_DIR={{ jellyfin_data_dir }} Environment=JELLYFIN_CONFIG_DIR={{ jellyfin_conf_dir }} Environment=JELLYFIN_LOG_DIR={{ jellyfin_log_dir }} +Environment=JELLYFIN_CACHE_DIR={{ jellyfin_cache_dir }} Restart=on-failure TimeoutSec=15 User={{ jellyfin_user }} Group={{ jellyfin_group }} WorkingDirectory={{ jellyfin_base_dir }} -ExecStart={{ jellyfin_base_dir }}/jellyfin-latest +ExecStart={{ jellyfin_base_dir }}/jellyfin-latest --service --noautorunwebapp [Install] WantedBy=multi-user.target