aboutsummaryrefslogtreecommitdiff
path: root/roles/plex/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/plex/tasks')
-rw-r--r--roles/plex/tasks/main.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/plex/tasks/main.yaml b/roles/plex/tasks/main.yaml
new file mode 100644
index 0000000..7cbb531
--- /dev/null
+++ b/roles/plex/tasks/main.yaml
@@ -0,0 +1,22 @@
+---
+
+- name: 'Install Plex'
+ community.docker.docker_container:
+ name: 'plex'
+ image: 'lscr.io/linuxserver/plex:latest'
+ pull: true
+ state: 'started'
+ recreate: false
+ env:
+ PUID: "1001"
+ PGID: "1001"
+ VERSION: "docker"
+ PLEX_CLAIM: "{{ plex_claim }}"
+ network_mode: 'host' # will use 32400
+ volumes:
+ - '{{ plex_library_dir }}:/config'
+ - '{{ plex_tv_dir }}:/tv'
+ - '{{ plex_mov_dir }}:/movies'
+ - '{{ plex_pic_dir }}:/pics'
+ - '{{ plex_music_dir }}:/music'
+ restart_policy: "unless-stopped"