From a0303f2557c0e3e4c7082d406d6587a413f21aa3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Wed, 20 May 2020 11:34:30 +0200 Subject: [PATCH] nfs/client: looks like nfs-lock is not present in RHEL8 Signed-off-by: Pierre-Yves Chibon --- roles/nfs/client/tasks/main.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/roles/nfs/client/tasks/main.yml b/roles/nfs/client/tasks/main.yml index a5fe0511a1..03362602b6 100644 --- a/roles/nfs/client/tasks/main.yml +++ b/roles/nfs/client/tasks/main.yml @@ -56,15 +56,22 @@ tags: - nfs/client -- name: enable nfs-related services and run them (rhel 7+ and Fedora) +- name: enable rpcbind services and run them (rhel 7+ and Fedora) service: name={{ item }} enabled=true state=started with_items: - rpcbind - - nfs-lock when: ansible_distribution_major_version|int >= 7 and ansible_distribution == 'RedHat' tags: - nfs/client +- name: enable nfs-lock service and run them (rhel 7 and Fedora) + service: name={{ item }} enabled=true state=started + with_items: + - nfs-lock + when: ansible_distribution_major_version|int == 7 and ansible_distribution == 'RedHat' + tags: + - nfs/client + - name: enable nfs-related services and run them (rhel6) service: name={{ item }} enabled=true state=started with_items: