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