From 92657ed3190d7b699eaf5556e483dc446a98c2a6 Mon Sep 17 00:00:00 2001 From: David Stephens Date: Sun, 25 Feb 2024 15:21:15 +0000 Subject: [PATCH] Configurable Emby image, enable mappable devices --- roles/emby/defaults/main.yml | 6 ++++++ roles/emby/tasks/main.yml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/emby/defaults/main.yml b/roles/emby/defaults/main.yml index 72121a9a..25bc2f48 100644 --- a/roles/emby/defaults/main.yml +++ b/roles/emby/defaults/main.yml @@ -26,3 +26,9 @@ emby_memory: 1g # docker emby_container_name: emby +emby_image: emby/embyserver +emby_image_tag: beta + +# Device mappings for the docker container. E.g. To enable hardware transcoding: +# emby_devices: +# - "/dev/dri:/dev/dri" \ No newline at end of file diff --git a/roles/emby/tasks/main.yml b/roles/emby/tasks/main.yml index 117600c4..9f150ad0 100644 --- a/roles/emby/tasks/main.yml +++ b/roles/emby/tasks/main.yml @@ -11,7 +11,7 @@ - name: Emby Docker Container community.docker.docker_container: name: "{{ emby_container_name }}" - image: emby/embyserver + image: "{{ emby_image }}:{{ emby_image_tag }}" pull: true volumes: - "{{ emby_config_directory }}:/config:rw" @@ -20,6 +20,7 @@ ports: - "{{ emby_port_http }}:8096" - "{{ emby_port_https }}:8920" + devices: "{{ emby_devices | default(omit) }}" env: TZ: "{{ ansible_nas_timezone }}" PUID: "{{ emby_user_id }}"