working: ansible
This commit is contained in:
parent
594ef7a65d
commit
0eb4bf6966
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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 }}"
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user