# vim: ft=yaml.ansible --- - 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 image: emby/embyserver_arm64v8:{{ services.emby.version }} restart_policy: always env: UID: '1000' GID: '1000' networks: - name: services aliases: - emby volumes: - "{{ services.emby.volume }}/programdata:/config:rw" - "{{ services.emby.volume }}/tvshows:/mnt/share1:rw" - "{{ services.emby.volume }}/movies:/mnt/share2:rw" published_ports: - 0.0.0.0:8096:8096/tcp devices: - /dev/vchiq:/dev/vchiq # MMAL/OMX on Raspberry Pi