[home-nounous] added home-nounous role

certbot_on_virtu
_benjamin 2020-07-19 14:57:32 +02:00 committed by shirenn
parent 18d01d9cc8
commit 76421036b2
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,13 @@
---
- name: Deploy nfs systemd mount
template:
src: systemd/system/home.mount.j2
dest: /etc/systemd/system/home.mount
mode: 0755
- name: Load and activate nfs systemd mount
systemd:
name: home.mount
daemon_reload: true
enabled: true
state: started

View File

@ -0,0 +1,14 @@
{{ ansible_header | comment }}
[Unit]
Description=Mount home
Wants=network-online.target
After=network-online.target
[Mount]
What=tealc.adm.crans.org:/pool/home
Where=/home
Type=nfs
Options=rw,nosuid
[Install]
WantedBy=multi-user.target