feat: make NFS client from NFS server
This commit is contained in:
15
roles/bittorrent/tasks/nfsclient.yml
Normal file
15
roles/bittorrent/tasks/nfsclient.yml
Normal 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"
|
Reference in New Issue
Block a user