mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-14 12:33:57 +00:00
25 lines
604 B
YAML
25 lines
604 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"
|
||
|
- "/etc/timezone:/etc/timezone:ro"
|
||
|
network_mode: "host"
|
||
|
env:
|
||
|
PUID: "{{ plex_user_id }}"
|
||
|
PGID: "{{ plex_group_id }}"
|
||
|
restart_policy: unless-stopped
|
||
|
memory: 1g
|