- name: Create Jellyfin Directories file: path: "{{ item }}" state: directory with_items: - "{{ jellyfin_config_directory }}" - name: Jellyfin Docker Container docker_container: name: jellyfin image: linuxserver/jellyfin pull: true volumes: - "{{ jellyfin_config_directory }}:/config:rw" - "{{ jellyfin_movies_directory }}:/movies:{{ jellyfin_movies_permissions }}" - "{{ jellyfin_tv_directory }}:/tv:{{ jellyfin_tv_permissions }}" ports: - "8896:8096" # HTTP port - "8928:8920" # HTTPS port env: TZ: "{{ ansible_nas_timezone }}" PUID: "{{ jellyfin_user_id }}" PGID: "{{ jellyfin_group_id }}" restart_policy: unless-stopped memory: 1g labels: traefik.backend: "jellyfin" traefik.frontend.rule: "Host:jellyfin.{{ ansible_nas_domain }}" traefik.enable: "{{ jellyfin_available_externally }}" traefik.port: "8096"