ansible-nas/tasks/plex.yml
Craig Jarvis 4033bfb60d Added timezone to the all.yml file. Updated some containers to use it
Not all containers can use the TZ as an ENV. Updated the ones that can.
2018-11-13 09:30:13 +11:00

24 lines
602 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:rw"
- "{{ plex_tv_directory }}:/tv:rw"
network_mode: "host"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ plex_user_id }}"
PGID: "{{ plex_group_id }}"
restart_policy: unless-stopped
memory: 1g