nfs/client: looks like nfs-lock is not present in RHEL8

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-05-20 11:34:30 +02:00
parent 7acddaeca5
commit a0303f2557

View file

@ -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: