Files
Ansible-Server-Migration/playbooks/mount.yml
2026-06-14 21:07:57 +00:00

29 lines
697 B
YAML

- name: modify fstab
hosts: alma
become: true
tasks:
- name: add NFS mount
ansible.posix.mount:
path: /mnt/nfs
src: 192.168.xx.xx:/mnt/nfs
fstype: nfs
opts: rw,nofail,_netdev
state: mounted
- name: add smb mount
ansible.posix.mount:
path: /samba
src: //192.168.xx.xx/sharedfolder
fstype: cifs
opts: username=blastoise,password=givemefiles,uid=1000,gid=1000,file_mode=0777,_netdev
state: mounted
- name: add NFS mount
ansible.posix.mount:
path: /raiddrives
src: 192.168.xx.xx:/raiddrives
fstype: nfs
opts: rw,nofail,_netdev
state: mounted