diff --git a/docs/applications/jellyfin.md b/docs/applications/jellyfin.md index 83ddd101..1be82a43 100644 --- a/docs/applications/jellyfin.md +++ b/docs/applications/jellyfin.md @@ -10,7 +10,7 @@ similar functionality. ## Usage Set `jellyfin_enabled: true` in your `inventories//nas.yml` file. There are further -parameters you can edit such as `movies_root` and `tv_root` lower down. +parameters you can edit such as `movies_root`, `tv_root` or `music_root` lower down. ## Specific Configuration @@ -18,12 +18,13 @@ The jellyfin web interface can be found at port 8896 (http) or 8928 (https, if configured) of your NAS. By default, Ansible-NAS gives jellyfin read/write access to the folders where your -movies and TV shows are stored. To change this to read-only, edit the following +movies, TV shows and music are stored. To change this to read-only, edit the following lines in `all.yml`: ``` jellyfin_movies_permissions: "rw" jellyfin_tv_permissions: "rw" + jellyfin_music_permissions: "rw" ``` so that they end in `ro` instead of `rw`. Note that jellyfin will not be able to @@ -68,4 +69,4 @@ Unfortunately, there are number of special cases, especially related to split movies and older series. See the [movie naming](https://github.com/MediaBrowser/Wiki/wiki/Movie%20naming) and [TV naming](https://github.com/MediaBrowser/Wiki/wiki/TV-naming) guides for further -information. \ No newline at end of file +information. diff --git a/group_vars/all.yml b/group_vars/all.yml index 64486bf1..587ba135 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -805,6 +805,8 @@ jellyfin_movies_directory: "{{ movies_root }}" jellyfin_movies_permissions: "rw" jellyfin_tv_directory: "{{ tv_root }}" jellyfin_tv_permissions: "rw" +jellyfin_music_directory: "{{ music_root }}" +jellyfin_music_permissions: "rw" jellyfin_user_id: "0" jellyfin_group_id: "0" jellyfin_port_http: "8896" diff --git a/tasks/jellyfin.yml b/tasks/jellyfin.yml index 673cf6d7..a3b500b1 100644 --- a/tasks/jellyfin.yml +++ b/tasks/jellyfin.yml @@ -14,6 +14,7 @@ - "{{ jellyfin_config_directory }}:/config:rw" - "{{ jellyfin_movies_directory }}:/movies:{{ jellyfin_movies_permissions }}" - "{{ jellyfin_tv_directory }}:/tv:{{ jellyfin_tv_permissions }}" + - "{{ jellyfin_music_directory }}:/music:{{ jellyfin_music_permissions }}" ports: - "{{ jellyfin_port_http }}:8096" - "{{ jellyfin_port_https }}:8920" @@ -27,4 +28,4 @@ traefik.backend: "jellyfin" traefik.frontend.rule: "Host:jellyfin.{{ ansible_nas_domain }}" traefik.enable: "{{ jellyfin_available_externally }}" - traefik.port: "8096" \ No newline at end of file + traefik.port: "8096"