homelab/roles/jellyfin/tasks/main.yml
2024-10-25 20:10:23 +05:00

25 lines
583 B
YAML

---
- name: Create jellyfin volumes
become: true
community.docker.docker_volume:
name: "{{ item }}"
loop:
- jellyfin-cache
- jellyfin-config
- name: Run jellyfin
become: true
community.docker.docker_container:
name: jellyfin
image: jellyfin/jellyfin:10.9.11
networks:
- name: haproxy
user: "1000:1000"
volumes:
- jellyfin-cache:/cache
- jellyfin-config:/config
- /mnt/hdd/jellyfin:/media
devices:
- /dev/dri/
env:
JELLYFIN_PublishedServerUrl: "{{ server_url }}"
restart_policy: unless-stopped