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"
|
2019-04-02 11:29:48 +00:00
|
|
|
- "{{ emby_movies_directory }}:/movies:{{ emby_movies_permissions }}"
|
|
|
|
- "{{ emby_tv_directory }}:/tv:{{ emby_tv_permissions }}"
|
2018-12-08 22:44:51 +00:00
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ emby_port_http }}:8096"
|
|
|
|
- "{{ emby_port_https }}:8920"
|
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
|
2019-04-11 22:03:11 +00:00
|
|
|
labels:
|
|
|
|
traefik.enable: "{{ emby_available_externally }}"
|
2021-01-19 17:18:12 +00:00
|
|
|
traefik.http.routers.emby.rule: "Host(`{{ emby_hostname }}.{{ ansible_nas_domain }}`)"
|
|
|
|
traefik.http.routers.emby.tls.certresolver: "letsencrypt"
|
|
|
|
traefik.http.routers.emby.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.routers.emby.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.services.emby.loadbalancer.server.port: "8096"
|