summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2015-03-25 12:32:40 +0000
committerKevin Fenzi <kevin@scrye.com>2015-03-25 12:32:40 +0000
commitf3cc25bb8c4b5cb4d85b110e63ffd4cfec84c433 (patch)
treecb9e158a9d6ef2f1eb7e5edc5f44c3c791e7fbc3
parent60c49f21a2e183ee454b65ac7fa8aebd81ea7451 (diff)
downloadansible-f3cc25bb8c4b5cb4d85b110e63ffd4cfec84c433.tar.gz
ansible-f3cc25bb8c4b5cb4d85b110e63ffd4cfec84c433.tar.xz
ansible-f3cc25bb8c4b5cb4d85b110e63ffd4cfec84c433.zip
This only works with f20 (nfs-lock isnt in f21+)
-rw-r--r--roles/nfs/client/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/nfs/client/tasks/main.yml b/roles/nfs/client/tasks/main.yml
index 2d5489c06..1a4f4839b 100644
--- a/roles/nfs/client/tasks/main.yml
+++ b/roles/nfs/client/tasks/main.yml
@@ -25,12 +25,12 @@
- nfs-utils
- rpcbind
-- name: enable nfs-related services and run them (fedora20 and newer)
+- name: enable nfs-related services and run them (fedora20 only)
service: name={{ item }} enabled=true state=started
with_items:
- rpcbind
- nfs-lock
- when: ansible_distribution == 'Fedora' and ansible_distribution_major_version > '19'
+ when: ansible_distribution == 'Fedora' and ansible_distribution_major_version == '20'
- name: enable nfs-related services and run them (rhel7)
service: name={{ item }} enabled=true state=started