feat: make NFS client from NFS server

This commit is contained in:
VC
2024-07-05 11:53:39 +02:00
parent 88a52e2134
commit de7dc4994b
5 changed files with 18 additions and 38 deletions

View File

@@ -0,0 +1,15 @@
---
- name: Put NFS client on fstab
ansible.posix.mount:
path: /net
src: nfs.mateu.be:/mnt/tank/nfs
fstype: nfs
opts: auto,x-systemd.automount,_netdev,nofail,noatime,nolock,tcp,actimeo=1800,bg,retry=10
state: present
- name: Create cron for NFS client
ansible.builtin.cron:
name: "mount /net"
special_time: reboot
job: "mount -a"