summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ansible/roles/nfs/defaults/main.yml5
-rw-r--r--ansible/roles/nfs/tasks/main.yml6
-rwxr-xr-xbuild/creating_data/create-rhel-repo.sh2
3 files changed, 11 insertions, 2 deletions
diff --git a/ansible/roles/nfs/defaults/main.yml b/ansible/roles/nfs/defaults/main.yml
index a5e1d2a5..bce98da6 100644
--- a/ansible/roles/nfs/defaults/main.yml
+++ b/ansible/roles/nfs/defaults/main.yml
@@ -1,5 +1,8 @@
---
+nfs_packages:
+ RedHat:
+ - nfs-utils
nfs_services:
RedHat:
- rpcbind
- - nfs
+ - nfs-server
diff --git a/ansible/roles/nfs/tasks/main.yml b/ansible/roles/nfs/tasks/main.yml
index 32194d13..aca1771f 100644
--- a/ansible/roles/nfs/tasks/main.yml
+++ b/ansible/roles/nfs/tasks/main.yml
@@ -5,6 +5,12 @@
state: directory
mode: 0777
+- name: Install nfs packages
+ package:
+ name: "{{ item }}"
+ state: present
+ with_items: "{{ nfs_packages[ansible_os_family] }}"
+
- name: Setup nfs server
block:
- name: Start services
diff --git a/build/creating_data/create-rhel-repo.sh b/build/creating_data/create-rhel-repo.sh
index 8e872d9e..9859dc93 100755
--- a/build/creating_data/create-rhel-repo.sh
+++ b/build/creating_data/create-rhel-repo.sh
@@ -36,7 +36,7 @@ fi
# this exact docker version is required by ONAP/beijing
# it should be available in centos docker repo
-yumdownloader --resolve --destdir="${OUTDIR}" docker-ce-17.03.2.ce libtool-ltdl docker-ce-selinux
+yumdownloader --resolve --destdir="${OUTDIR}" docker-ce-17.03.2.ce libtool-ltdl docker-ce-selinux nfs-utils
createrepo "${OUTDIR}"