diff options
author | Milan Verespej <m.verespej@partner.samsung.com> | 2019-02-13 12:53:51 +0100 |
---|---|---|
committer | Tomáš Levora <t.levora@partner.samsung.com> | 2019-02-14 11:12:43 +0100 |
commit | 09b5d95763b2e80de02b949e7fb138f887cb0dea (patch) | |
tree | 013a67079605d352fba8dfacaff66bdf5f6aa845 /ansible | |
parent | 8063d1a15de138bbeff98fc8b48c78154ada8717 (diff) |
Fix nfs on nodes does not install nfs packages
Issue-ID: OOM-1640
Change-Id: Ieb8d736e543d58facb9a84c3366c5b15418e17d2
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/roles/nfs/defaults/main.yml | 5 | ||||
-rw-r--r-- | ansible/roles/nfs/tasks/main.yml | 6 |
2 files changed, 10 insertions, 1 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 |