mirror of
https://github.com/lukaszraczylo/rpi-home-cluster-setup.git
synced 2026-10-14 00:58:38 +00:00
* Fix mounts issue after complete cluster shutdown. * Add pimoroni fan shim support.
37 lines
941 B
YAML
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 |