This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
pi-ansible/roles/docker/tasks/services/emby.yml

36 lines
894 B
YAML
Raw Normal View History

2022-12-22 19:18:27 +00:00
# vim: ft=yaml.ansible
2022-12-22 16:58:48 +00:00
---
- name: Create Emby volume directories
file:
name: "{{ services.emby.volume }}/{{ dir }}"
owner: "{{ ansible_user }}"
mode: u=rwx,g=rx,o=rx
state: directory
loop:
- programdata
- tvshows
- movies
loop_control:
loop_var: dir
- name: Deploy Emby Docker container
docker_container:
name: emby_app
2023-01-03 21:30:22 +00:00
image: emby/embyserver_arm64v8:{{ services.emby.version }}
2022-12-22 16:58:48 +00:00
restart_policy: unless-stopped
env:
2022-12-23 17:28:01 +00:00
UID: '1000'
GID: '1000'
networks:
2022-12-28 17:03:57 +00:00
- name: services
2022-12-28 17:24:27 +00:00
aliases:
- emby
2022-12-22 16:58:48 +00:00
volumes:
- "{{ services.emby.volume }}/programdata:/config:rw"
- "{{ services.emby.volume }}/tvshows:/mnt/share1:rw"
- "{{ services.emby.volume }}/movies:/mnt/share2:rw"
published_ports:
2023-01-03 21:30:22 +00:00
- 0.0.0.0:8096:8096/tcp
2022-12-22 16:58:48 +00:00
devices:
- /dev/vchiq:/dev/vchiq # MMAL/OMX on Raspberry Pi