Attempt to add NFS install and share drive.
This commit is contained in:
parent
2d2d9529aa
commit
8614717e14
@ -10,6 +10,7 @@
|
|||||||
gnome_tweaks: gnome-tweaks
|
gnome_tweaks: gnome-tweaks
|
||||||
dconf_editor: dconf-editor
|
dconf_editor: dconf-editor
|
||||||
appimagelauncher: htop #placeholder
|
appimagelauncher: htop #placeholder
|
||||||
|
nfs: nfs-common
|
||||||
|
|
||||||
|
|
||||||
- name: Workstation | Facts | Package | Pop_OS!
|
- name: Workstation | Facts | Package | Pop_OS!
|
||||||
|
@ -67,6 +67,8 @@
|
|||||||
|
|
||||||
- include: tasks/workstation/settings/gnome.yml
|
- include: tasks/workstation/settings/gnome.yml
|
||||||
|
|
||||||
|
- include: tasks/workstation/settings/nfs.yml
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Additional setup for miners!
|
# Additional setup for miners!
|
||||||
|
28
tasks/workstation/settings/nfs.yml
Normal file
28
tasks/workstation/settings/nfs.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
# Use Apt specific because they're consistent! :)
|
||||||
|
|
||||||
|
- name: Workstation | Settings | NFS | Facts
|
||||||
|
set_fact:
|
||||||
|
media_folder: /mnt/media
|
||||||
|
|
||||||
|
- name: Workstation | Settings | NFS | Install
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- "{{ nfs }}"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Workstation | Settings | NFS | Create Folders
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
mode: '0777'
|
||||||
|
loop:
|
||||||
|
- "{{ media_folder }}"
|
||||||
|
|
||||||
|
- name: Workstation | Settings | NFS | Create Mount Instructions
|
||||||
|
blockinfile:
|
||||||
|
path: /etc/fstab
|
||||||
|
marker: "# {mark} MANAGED BY ANSIBLE | Media"
|
||||||
|
block: |
|
||||||
|
htpc:/mnt/hdd_unsafe/media {{ media_folder }} nfs defaults 0 0
|
||||||
|
backup: yes
|
Loading…
x
Reference in New Issue
Block a user