From 725e250ad2d36697487df629002a7caa7114c6d3 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 4 Sep 2017 14:48:24 +0100 Subject: xci: configure-nfs: Install the NFS server package We need to explicitly install the nfs server package instead of bundling it to the dib image since not every node needs it. Change-Id: I73f59f4ed582359df80ea08712b433537c087aea Signed-off-by: Markos Chandras --- xci/playbooks/roles/configure-nfs/tasks/main.yml | 6 ++++++ xci/playbooks/roles/configure-nfs/vars/debian.yml | 2 +- xci/playbooks/roles/configure-nfs/vars/suse.yml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'xci/playbooks/roles/configure-nfs') diff --git a/xci/playbooks/roles/configure-nfs/tasks/main.yml b/xci/playbooks/roles/configure-nfs/tasks/main.yml index df33e52f..25e81496 100644 --- a/xci/playbooks/roles/configure-nfs/tasks/main.yml +++ b/xci/playbooks/roles/configure-nfs/tasks/main.yml @@ -43,6 +43,12 @@ with_items: - "/images *(rw,sync,no_subtree_check,no_root_squash)" - "/volumes *(rw,sync,no_subtree_check,no_root_squash)" + +- name: Install the NFS server package + package: + name: "{{ nfs_server_package }}" + state: latest + - name: restart NFS service service: name: "{{ nfs_server_service }}" diff --git a/xci/playbooks/roles/configure-nfs/vars/debian.yml b/xci/playbooks/roles/configure-nfs/vars/debian.yml index 8d3c6561..cb3b2084 100644 --- a/xci/playbooks/roles/configure-nfs/vars/debian.yml +++ b/xci/playbooks/roles/configure-nfs/vars/debian.yml @@ -7,5 +7,5 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## - +nfs_server_package: "nfs-kernel-server" nfs_server_service: "nfs-kernel-server" diff --git a/xci/playbooks/roles/configure-nfs/vars/suse.yml b/xci/playbooks/roles/configure-nfs/vars/suse.yml index c60cafa5..01173d8a 100644 --- a/xci/playbooks/roles/configure-nfs/vars/suse.yml +++ b/xci/playbooks/roles/configure-nfs/vars/suse.yml @@ -7,5 +7,5 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## - +nfs_server_package: "nfs-kernel-server" nfs_server_service: "nfs-server" -- cgit 1.2.3-korg