mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 08:27:19 +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)
29 lines
844 B
YAML
29 lines
844 B
YAML
- name: Create Plex Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
# mode: 0755
|
|
with_items:
|
|
- "{{ plex_config_directory }}"
|
|
|
|
- name: plex Docker Container
|
|
docker_container:
|
|
name: plex
|
|
image: linuxserver/plex
|
|
pull: true
|
|
volumes:
|
|
- "{{ plex_config_directory }}:/config:rw"
|
|
- "{{ plex_movies_directory }}:/movies:{{ plex_movies_permissions }}"
|
|
- "{{ plex_tv_directory }}:/tv:{{ plex_tv_permissions }}"
|
|
network_mode: "host"
|
|
env:
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
PUID: "{{ plex_user_id }}"
|
|
PGID: "{{ plex_group_id }}"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.backend: "plex"
|
|
traefik.frontend.rule: "Host:plex.{{ ansible_nas_domain }}"
|
|
traefik.enable: "{{ plex_available_externally }}"
|
|
traefik.port: "32400"
|