From 404e6a8009ec53e241f005d56daa580559875ed5 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 16 Jul 2022 16:38:14 -0400 Subject: [PATCH] change credential file location; update readme --- applications/roles/media/README.md | 2 +- applications/roles/media/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/roles/media/README.md b/applications/roles/media/README.md index 8fd2eb0..97218dd 100644 --- a/applications/roles/media/README.md +++ b/applications/roles/media/README.md @@ -1,7 +1,7 @@ Media Server ============ -A series of docker containers to allow full automation of media management. +Mount a Hard drive and a network share and Deploy Plex Media Server in a docker container. Role Variables -------------- diff --git a/applications/roles/media/tasks/main.yml b/applications/roles/media/tasks/main.yml index 0e39fcd..3699bc3 100644 --- a/applications/roles/media/tasks/main.yml +++ b/applications/roles/media/tasks/main.yml @@ -18,7 +18,7 @@ linesinfile: state: present path: "/etc/fstab" - line: "//192.168.0.39/torrents /mnt/downloads cifs vers=3.0,credentials=/home/{{ username }}/.sharelogin,iocharset=utf8,file_mode=0777,dir_mode=0777,uid={{ username }},gid={{ username }},nofail 0 0" + line: "//192.168.0.39/torrents /mnt/downloads cifs vers=3.0,credentials=/home/{{ lookup('env', 'USER') }}/.credentials/torrentlogin,iocharset=utf8,file_mode=0777,dir_mode=0777,uid={{ lookup('env', 'USER') }},gid={{ lookup('env', 'USER') }},nofail 0 0" notify: - Manual Share Mount