37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
---
|
|
jellyfin_user: jellyfin
|
|
jellyfin_version: "10.10.1"
|
|
jellyfin_state: present
|
|
|
|
jellyfin_base_path: /opt/jellyfin
|
|
jellyfin_config_path: "{{ jellyfin_base_path }}/config"
|
|
jellyfin_cache_path: "{{ jellyfin_base_path }}/cache"
|
|
|
|
jellyfin_media_volumes: []
|
|
|
|
jellyfin_container_name: jellyfin
|
|
jellyfin_container_image_name: "docker.io/jellyfin/jellyfin"
|
|
jellyfin_container_image_tag: ~
|
|
jellyfin_container_image_ref: >-2
|
|
{{ jellyfin_container_image_name }}:{{ jellyfin_container_image_tag | default(jellyfin_version, true) }}
|
|
jellyfin_container_image_source: pull
|
|
jellyfin_container_state: >-2
|
|
{{ (jellyfin_state == 'present') | ternary('started', 'absent') }}
|
|
jellyfin_container_network_mode: host
|
|
jellyfin_container_networks: ~
|
|
jellyfin_container_volumes: "{{ jellyfin_container_base_volumes + jellyfin_media_volumes }}"
|
|
jellyfin_container_labels: "{{ jellyfin_container_base_labels | combine(jellyfin_container_extra_labels) }}"
|
|
jellyfin_container_extra_labels: {}
|
|
jellyfin_container_restart_policy: "unless-stopped"
|
|
|
|
jellyfin_host_directories:
|
|
- path: "{{ jellyfin_base_path }}"
|
|
mode: "0750"
|
|
- path: "{{ jellyfin_config_path }}"
|
|
mode: "0750"
|
|
- path: "{{ jellyfin_cache_path }}"
|
|
mode: "0750"
|
|
|
|
jellyfin_uid: "{{ jellyfin_user_info.uid | default(jellyfin_user) }}"
|
|
jellyfin_gid: "{{ jellyfin_user_info.group | default(jellyfin_user) }}"
|