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
community.docker.docker_compose_v2:
project_src: "{{ path }}"
project_name: "{{ role_name }}"
recreate: "always"
services: ["jellyfin"]
state: "restarted"
when: not _jellyfin_already_restarted
community.docker.docker_compose_v2:
project_src: "{{ path }}"
project_name: "{{ role_name }}"
recreate: "always"
services: ["jellyfin"]
state: "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.
# Maximum 20 tags per role.
# dependencies:
# - role: base
dependencies:
- role: traefik

View File

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

View File

@ -6,15 +6,15 @@ services:
networks:
- proxy
volumes:
- ./config/jellyfin:/config
- ./cache:/cache
- ./data/config:/config
- ./data/cache:/cache
- {{ jellyfin.data_path }}:/media
restart: 'unless-stopped'
environment:
- JELLYFIN_PublishedServerUrl=https://{{ jellyfin.urmel }}
- JELLYFIN_PublishedServerUrl=https://{{ jellyfin.url }}
labels:
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.certResolver: hetzner
traefik.http.services.jellyfin-https.loadbalancer.server.port: 8096