Files
rpi-home-cluster-setup/step2/roles/common/tasks/nfs.yml
T
Lukasz RaczyloandGitHub 68251ff9a5 Bugfixes and enhacements (#1)
* Fix mounts issue after complete cluster shutdown.

* Add pimoroni fan shim support.
2021-03-24 07:26:39 +00:00

37 lines
941 B
YAML

---
- name: Install nfsprogs
ansible.builtin.package:
name:
- nfs-utils
- name: Prepare nfs mountpoint
ansible.builtin.shell:
cmd: |
mkdir -p /media/nfs
- name: Mount NFS resources
ansible.posix.mount:
src: "{{settings.nfs_host}}:{{settings.nfs_multi_share_path}}"
path: /media/nfs
fstype: nfs
opts: nofail,noatime,nolock,tcp,actimeo=1800
state: mounted
boot: yes
- name: Mount NFS torrent
ansible.posix.mount:
src: "{{settings.nfs_host}}:{{settings.nfs_torrent_path}}"
path: /mnt/drobo-storage/docker-volumes/torrent
fstype: nfs
opts: nofail,noatime,nolock,tcp,actimeo=1800
state: mounted
boot: yes
- name: Mount NFS adguard
ansible.posix.mount:
src: "{{settings.nfs_host}}:{{settings.nfs_adguard_path}}"
path: /mnt/drobo-storage/docker-volumes/adguard
fstype: nfs
opts: nofail,noatime,nolock,tcp,actimeo=1800
state: mounted
boot: yes