Files
ansible/roles/bittorrent/tasks/nfsclient.yml
2024-07-05 11:53:39 +02:00

16 lines
368 B
YAML

---
- 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"