From c7aa800a24a68fcd7970247fbf6fae02da6e8629 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 12 Jan 2015 20:21:23 +0000 Subject: [PATCH] Revert "See if we can fold these cases together" This reverts commit cde692749f1edcdacd02c87394c9fbc31cae801d. --- roles/nfs/server/tasks/main.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/roles/nfs/server/tasks/main.yml b/roles/nfs/server/tasks/main.yml index d9d92d2ec0..bb278e9bc5 100644 --- a/roles/nfs/server/tasks/main.yml +++ b/roles/nfs/server/tasks/main.yml @@ -15,11 +15,23 @@ tags: - nfs/server -- name: enable nfs-related services and run them +- name: enable nfs-related services and run them (fedora) action: service name={{ item }} enabled=true state=started with_items: - nfs-idmap - rpc-statd + when: ansible_distribution == 'Fedora' + tags: + - nfs/server + +- name: enable nfs-related services and run them (rhel) + action: service name={{ item }} enabled=true state=started + with_items: + - rpcidmapd + - rpcbind + - nfs + - nfslock + when: ansible_distribution == 'RedHat' tags: - nfs/server