diff --git a/roles/home-nounous/tasks/main.yml b/roles/home-nounous/tasks/main.yml new file mode 100644 index 0000000000000000000000000000000000000000..41e03224650c34124a18d8a4fb5f5119ebff77d6 --- /dev/null +++ b/roles/home-nounous/tasks/main.yml @@ -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 diff --git a/roles/home-nounous/templates/systemd/system/home.mount.j2 b/roles/home-nounous/templates/systemd/system/home.mount.j2 new file mode 100644 index 0000000000000000000000000000000000000000..8f9babaf297169789426aa383e6cf3e63f0b3a60 --- /dev/null +++ b/roles/home-nounous/templates/systemd/system/home.mount.j2 @@ -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