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
|
||||
dconf_editor: dconf-editor
|
||||
appimagelauncher: htop #placeholder
|
||||
nfs: nfs-common
|
||||
|
||||
|
||||
- name: Workstation | Facts | Package | Pop_OS!
|
||||
|
@ -66,6 +66,8 @@
|
||||
when: ansible_system == "Linux"
|
||||
|
||||
- include: tasks/workstation/settings/gnome.yml
|
||||
|
||||
- include: tasks/workstation/settings/nfs.yml
|
||||
|
||||
|
||||
|
||||
|
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