From 2310a08594f88bc5541688ddada90d95d6a37205 Mon Sep 17 00:00:00 2001 From: Benjamin Graillot <graillot@crans.org> Date: Sun, 19 Jul 2020 18:04:59 +0200 Subject: [PATCH] [home-nounous] install nfs-common --- roles/home-nounous/tasks/main.yml | 10 ++++++++++ .../templates/systemd/system/home.mount.j2 | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/roles/home-nounous/tasks/main.yml b/roles/home-nounous/tasks/main.yml index 41e03224..25c533e0 100644 --- a/roles/home-nounous/tasks/main.yml +++ b/roles/home-nounous/tasks/main.yml @@ -1,4 +1,14 @@ --- +- name: Install NFS client + apt: + update_cache: true + name: + - nfs-common + state: present + register: apt_result + retries: 3 + until: apt_result is succeeded + - name: Deploy nfs systemd mount template: src: systemd/system/home.mount.j2 diff --git a/roles/home-nounous/templates/systemd/system/home.mount.j2 b/roles/home-nounous/templates/systemd/system/home.mount.j2 index 8f9babaf..d0464e90 100644 --- a/roles/home-nounous/templates/systemd/system/home.mount.j2 +++ b/roles/home-nounous/templates/systemd/system/home.mount.j2 @@ -5,7 +5,7 @@ Wants=network-online.target After=network-online.target [Mount] -What=tealc.adm.crans.org:/pool/home +What=172.16.1.1:/pool/home Where=/home Type=nfs Options=rw,nosuid -- GitLab