diff --git a/roles/nfs/client/tasks/main.yml b/roles/nfs/client/tasks/main.yml index 9195f6fea6..2d5489c06b 100644 --- a/roles/nfs/client/tasks/main.yml +++ b/roles/nfs/client/tasks/main.yml @@ -25,15 +25,17 @@ - nfs-utils - rpcbind -- name: enable nfs-related services and run them (fedora20) +- name: enable nfs-related services and run them (fedora20 and newer) service: name={{ item }} enabled=true state=started with_items: + - rpcbind - nfs-lock - when: ansible_distribution == 'Fedora' and ansible_distribution_major_version == '20' + when: ansible_distribution == 'Fedora' and ansible_distribution_major_version > '19' - name: enable nfs-related services and run them (rhel7) service: name={{ item }} enabled=true state=started with_items: + - rpcbind - nfs-lock when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'