Add playbooks/mount.yml
This commit is contained in:
28
playbooks/mount.yml
Normal file
28
playbooks/mount.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
- 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
|
||||
Reference in New Issue
Block a user