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 }}"