From cde692749f1edcdacd02c87394c9fbc31cae801d Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 12 Jan 2015 20:18:55 +0000 Subject: [PATCH] See if we can fold these cases together --- roles/nfs/server/tasks/main.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/roles/nfs/server/tasks/main.yml b/roles/nfs/server/tasks/main.yml index bb278e9bc5..d9d92d2ec0 100644 --- a/roles/nfs/server/tasks/main.yml +++ b/roles/nfs/server/tasks/main.yml @@ -15,23 +15,11 @@ tags: - nfs/server -- name: enable nfs-related services and run them (fedora) +- name: enable nfs-related services and run them 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