working: ansible

This commit is contained in:
Kyattsukuro 2026-10-09 23:15:41 +02:00
parent 594ef7a65d
commit 0eb4bf6966
4 changed files with 14 additions and 15 deletions

View File

@ -1,9 +1,8 @@
- name: restart container - name: restart container
community.docker.docker_compose_v2: community.docker.docker_compose_v2:
project_src: "{{ path }}" project_src: "{{ path }}"
project_name: "{{ role_name }}" project_name: "{{ role_name }}"
recreate: "always" recreate: "always"
services: ["jellyfin"] services: ["jellyfin"]
state: "restarted" state: "restarted"
when: not _jellyfin_already_restarted when: not _jellyfin_already_restarted

View File

@ -16,5 +16,5 @@ galaxy_info:
# NOTE: A tag is limited to a single word comprised of alphanumeric characters. # NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role. # Maximum 20 tags per role.
# dependencies: dependencies:
# - role: base - role: traefik

View File

@ -16,7 +16,7 @@
- import_role: - import_role:
name: storage_mount name: storage_mount
vars: vars:
storagebox_override: storage_mount_override:
host: "{{ jellyfin.networkmount.host }}" host: "{{ jellyfin.networkmount.host }}"
host_path: "{{ jellyfin.networkmount.host_path }}" host_path: "{{ jellyfin.networkmount.host_path }}"
args: "{{ jellyfin.networkmount.args }}" args: "{{ jellyfin.networkmount.args }}"

View File

@ -6,15 +6,15 @@ services:
networks: networks:
- proxy - proxy
volumes: volumes:
- ./config/jellyfin:/config - ./data/config:/config
- ./cache:/cache - ./data/cache:/cache
- {{ jellyfin.data_path }}:/media - {{ jellyfin.data_path }}:/media
restart: 'unless-stopped' restart: 'unless-stopped'
environment: environment:
- JELLYFIN_PublishedServerUrl=https://{{ jellyfin.urmel }} - JELLYFIN_PublishedServerUrl=https://{{ jellyfin.url }}
labels: labels:
traefik.enable: true traefik.enable: true
traefik.http.routers.jellyfin.rule: "Host(`{{ jellyfin.urmel }}`)" traefik.http.routers.jellyfin.rule: "Host(`{{ jellyfin.url }}`)"
traefik.http.routers.jellyfin.tls: true traefik.http.routers.jellyfin.tls: true
traefik.http.routers.jellyfin.tls.certResolver: hetzner traefik.http.routers.jellyfin.tls.certResolver: hetzner
traefik.http.services.jellyfin-https.loadbalancer.server.port: 8096 traefik.http.services.jellyfin-https.loadbalancer.server.port: 8096