2018-12-08 22:44:51 +00:00
|
|
|
- name: Create Emby Directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- "{{ emby_config_directory }}"
|
|
|
|
|
|
|
|
- name: emby Docker Container
|
|
|
|
docker_container:
|
|
|
|
name: emby
|
|
|
|
image: emby/embyserver
|
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ emby_config_directory }}:/config:rw"
|
|
|
|
- "{{ emby_movies_directory }}:/movies:rw"
|
|
|
|
- "{{ emby_tv_directory }}:/tv:rw"
|
|
|
|
ports:
|
|
|
|
- "8096:8096" # HTTP port
|
|
|
|
- "8920:8920" # HTTPS port
|
2019-03-01 20:54:16 +00:00
|
|
|
network_mode: host
|
2018-12-08 22:44:51 +00:00
|
|
|
env:
|
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
|
|
PUID: "{{ emby_user_id }}"
|
|
|
|
PGID: "{{ emby_group_id }}"
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
memory: 1g
|