mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-26 11:33:08 +00:00
724424a979
User can now set parameters to decide if their Plex and/or Emby apps should consider the TV and movies folders as read-only or read-write (see discussion at #69)
31 lines
899 B
YAML
31 lines
899 B
YAML
- 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:{{ emby_movies_permissions }}"
|
|
- "{{ emby_tv_directory }}:/tv:{{ emby_tv_permissions }}"
|
|
ports:
|
|
- "8096:8096" # HTTP port
|
|
- "8920:8920" # HTTPS port
|
|
network_mode: host
|
|
env:
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
PUID: "{{ emby_user_id }}"
|
|
PGID: "{{ emby_group_id }}"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.backend: "emby"
|
|
traefik.frontend.rule: "Host:emby.{{ ansible_nas_domain }}"
|
|
traefik.enable: "{{ emby_available_externally }}"
|
|
traefik.port: "8096"
|