This commit is contained in:
3
main.yml
3
main.yml
@@ -61,3 +61,6 @@
|
|||||||
- name: Deploy Immich
|
- name: Deploy Immich
|
||||||
import_tasks: tasks/immich.yml
|
import_tasks: tasks/immich.yml
|
||||||
tags: immich_deploy
|
tags: immich_deploy
|
||||||
|
- name: Deploy Jellyfikn
|
||||||
|
import_tasks: tasks/jellyfin.yml
|
||||||
|
tags: jellyfin_deploy
|
||||||
|
25
tasks/jellyfin.yml
Normal file
25
tasks/jellyfin.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
- name: Create folder structure
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- "{{ data_dir }}/jellyfin"
|
||||||
|
|
||||||
|
- name: Create Jellyfin Docker Container
|
||||||
|
docker_container:
|
||||||
|
name: jellyfin
|
||||||
|
image: lscr.io/linuxserver/jellyfin:latest
|
||||||
|
restart_policy: unless-stopped
|
||||||
|
recreate: true
|
||||||
|
networks:
|
||||||
|
- name: homelab
|
||||||
|
volumes:
|
||||||
|
- "{{ data_dir }}/jellyfin:/config"
|
||||||
|
- "{{ JELLYFIN_TV_PATH }}:/data/tvshows"
|
||||||
|
- "{{ JELLYFIN_MOVIE_PATH }}:/data/movies"
|
||||||
|
- "{{ JELLYFIN_MUSIC_PATH }}:/data/music"
|
||||||
|
env:
|
||||||
|
PUID: "{{ PUID }}"
|
||||||
|
PGID: "{{ PGID }}"
|
||||||
|
TZ: "{{ TZ }}"
|
Reference in New Issue
Block a user