From 171d769d17cae0804a0585c5c6881d0584974b85 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 9 Mar 2021 15:50:04 -0600 Subject: [PATCH] Mount up NFS over ZT on desktop machines --- playbooks/desktop.yml | 7 +++++++ playbooks/pimp.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/playbooks/desktop.yml b/playbooks/desktop.yml index eff9792..2ad9e8c 100755 --- a/playbooks/desktop.yml +++ b/playbooks/desktop.yml @@ -16,6 +16,13 @@ # Required for Randovania to access Dolphin memory capability: cap_sys_ptrace=eip tags: [ desktop, python, cap ] + tasks: + - name: assure pi-storage-1 nfs mountpoint + file: path=/nfs/pi-storage-1.desu.ltd state=directory owner=root mode=0755 + tags: [ desktop, nfs ] + - name: assure pi-storage-1 nfs mount + mount: path=/nfs/pi-storage-1.desu.ltd src=pi-storage-1.desu.ltd:/srv/nfs fstype=nfs4 opts="rsize=10248576,wsize=1048576,soft,timeo=600,retrans=2" state=mounted + tags: [ desktop, nfs ] roles: - role: backup vars: diff --git a/playbooks/pimp.yml b/playbooks/pimp.yml index 9e50538..9389f49 100755 --- a/playbooks/pimp.yml +++ b/playbooks/pimp.yml @@ -55,6 +55,7 @@ - role: nfs vars: nfs_exports: + - "/srv/nfs 172.23.0.0/16(ro,no_root_squash,sync)" - "/srv/nfs/bulk 192.168.0.0/16(rw,no_root_squash,sync) 172.23.0.0/16(rw,no_root_squash,sync)" - "/srv/nfs/bulk/media 192.168.0.0/16(rw,no_root_squash,sync) 172.23.0.0/16(rw,no_root_squash,sync)" - "/srv/nfs/k8s 192.168.102.0/24(rw,no_root_squash,sync) 172.23.0.0/16(ro,no_root_squash,sync)"