Add drive mounting to media server playbook
This commit is contained in:
parent
7d49c21c62
commit
aab9c8d082
@ -4,7 +4,7 @@
|
||||
apt:
|
||||
name:
|
||||
- qemu-guest-agent
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
state: present
|
||||
|
||||
- include_tasks: docker.yml
|
||||
|
@ -21,6 +21,8 @@
|
||||
- "LOCAL_NETWORK: 192.168.0.0/24"
|
||||
volumes:
|
||||
- "{{ CONFIG_FOLDER }}/transmission/data:/data"
|
||||
ports:
|
||||
- 9091:9091
|
||||
capabilities:
|
||||
- NET_ADMIN
|
||||
|
||||
|
@ -1,2 +1,4 @@
|
||||
---
|
||||
# handlers file for media
|
||||
- name: Manual Share Mount
|
||||
become: true
|
||||
command: "sudo mount -a"
|
||||
|
@ -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=<SET_THIS_VALUE> /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
|
||||
|
Loading…
Reference in New Issue
Block a user