diff options
author | Peter Robinson <pbrobinson@gmail.com> | 2015-03-25 11:50:24 +0000 |
---|---|---|
committer | Peter Robinson <pbrobinson@lockbox01.phx2.fedoraproject.org> | 2015-03-25 11:54:21 +0000 |
commit | 60c49f21a2e183ee454b65ac7fa8aebd81ea7451 (patch) | |
tree | 35e009c315dacc690fecef8a41c3f11e3f3f6180 | |
parent | a7f7d1bf8e89ca96e4d1f5312c08f99232948e07 (diff) | |
download | ansible-60c49f21a2e183ee454b65ac7fa8aebd81ea7451.tar.gz ansible-60c49f21a2e183ee454b65ac7fa8aebd81ea7451.tar.xz ansible-60c49f21a2e183ee454b65ac7fa8aebd81ea7451.zip |
NFSv3 locking depends on rpcbind and while dependencies in the packages systemd startup files should deal with it they don't so lets make sure its enabled and running
-rw-r--r-- | roles/nfs/client/tasks/main.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roles/nfs/client/tasks/main.yml b/roles/nfs/client/tasks/main.yml index 9195f6fea..2d5489c06 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' |