Attempt to add NFS install and share drive.

This commit is contained in:
Hyperling 2021-04-24 20:45:42 -05:00
parent 2d2d9529aa
commit 8614717e14
3 changed files with 31 additions and 0 deletions

View File

@ -10,6 +10,7 @@
gnome_tweaks: gnome-tweaks
dconf_editor: dconf-editor
appimagelauncher: htop #placeholder
nfs: nfs-common
- name: Workstation | Facts | Package | Pop_OS!

View File

@ -66,6 +66,8 @@
when: ansible_system == "Linux"
- include: tasks/workstation/settings/gnome.yml
- include: tasks/workstation/settings/nfs.yml

View 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