diff --git a/applications/roles/base/tasks/main.yml b/applications/roles/base/tasks/main.yml index a71358c..324b971 100644 --- a/applications/roles/base/tasks/main.yml +++ b/applications/roles/base/tasks/main.yml @@ -4,7 +4,7 @@ apt: name: - qemu-guest-agent - update_cache: yes + update_cache: true state: present - include_tasks: docker.yml diff --git a/applications/roles/media-manager/tasks/main.yml b/applications/roles/media-manager/tasks/main.yml index 9ea9f14..2a1e325 100644 --- a/applications/roles/media-manager/tasks/main.yml +++ b/applications/roles/media-manager/tasks/main.yml @@ -21,6 +21,8 @@ - "LOCAL_NETWORK: 192.168.0.0/24" volumes: - "{{ CONFIG_FOLDER }}/transmission/data:/data" + ports: + - 9091:9091 capabilities: - NET_ADMIN diff --git a/applications/roles/media/handlers/main.yml b/applications/roles/media/handlers/main.yml index a8a0d13..806d584 100644 --- a/applications/roles/media/handlers/main.yml +++ b/applications/roles/media/handlers/main.yml @@ -1,2 +1,4 @@ --- -# handlers file for media +- name: Manual Share Mount + become: true + command: "sudo mount -a" diff --git a/applications/roles/media/tasks/main.yml b/applications/roles/media/tasks/main.yml index 1326777..7769d74 100644 --- a/applications/roles/media/tasks/main.yml +++ b/applications/roles/media/tasks/main.yml @@ -1,4 +1,27 @@ --- +- name: Install cifs-utils + package: + name: + - cifs-utils + update_cache: true + state: present + +- name: Add media drive to fstab + linesinfile: + state: present + path: "/etc/fstab" + line: "UUID= /mnt/content auto defaults 0 0" + notify: + - Manual Share Mount + +- name: Add downloads drive to fstab + 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" + notify: + - Manual Share Mount + - name: Deploy Plex community.docker.docker_container: name: plex