From 68b101b7e5ce1f2acec3fb2053dcd89d620f1c79 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Thu, 18 Apr 2019 19:11:33 +0200 Subject: [PATCH] Fix: install nfs for debian and archlinux --- tasks/nfs_share.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/nfs_share.yml b/tasks/nfs_share.yml index 5da76ee..f7b518d 100644 --- a/tasks/nfs_share.yml +++ b/tasks/nfs_share.yml @@ -3,6 +3,14 @@ apt: pkg: nfs-kernel-server state: present + when: ansible_distribution == 'Debian' + notify: restart nfs + +- name: install nfs + pacman: + pkg: nfs-utils + state: present + when: ansible_distribution != 'Debian' notify: restart nfs - name: Lines in exports