--- - name: Create jellyfin volumes become: true community.docker.docker_volume: name: "{{ item }}" loop: - jellyfin-cache - jellyfin-config - name: Copy logging config become: true ansible.builtin.template: src: logging.json.j2 dest: /var/lib/docker/volumes/jellyfin-config/_data/config/logging.json mode: "0644" - 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