[zamok] Mount nfs with systemd
parent
8af0597adb
commit
34bb521722
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- name: Deploy nfs systemd mount
|
||||
template:
|
||||
src: systemd/system/nfs-home.mount.j2
|
||||
dest: /etc/systemd/system/nfs-home.mount
|
||||
mode: 0755
|
||||
|
||||
- name: Load and activate nfs systemd mount
|
||||
systemd:
|
||||
name: nfs-home.mount
|
||||
daemon_reload: true
|
||||
enabled: true
|
||||
state: started
|
|
@ -0,0 +1,12 @@
|
|||
# {{ ansible_managed }}
|
||||
[Unit]
|
||||
Description=Mount home-adh on zbee
|
||||
|
||||
[Mount]
|
||||
What=nfs.adm.crans.org:/home-adh
|
||||
Where=/home
|
||||
Type=nfs
|
||||
Options=rw,nosuid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue