From 1bfc44f1017aa52ec0b761b7af90af57f4554249 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Tue, 24 Mar 2015 16:58:08 -0500 Subject: [PATCH] Fixes #6: Role sometimes hangs on CentOS install if rpcbind not running. --- tasks/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index fe18f07..ec06a98 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -20,9 +20,9 @@ notify: restart nfs # Configuration tasks. -- name: Ensure rpcbind and nfs are running. - service: "name={{ item }} state=started enabled=yes" - with_items: - - rpcbind - - "{{ nfs_server_daemon }}" +- name: Ensure rpcbind is running. + service: name=rpcbind state=started enabled=yes + +- name: Ensure nfs is running. + service: "name={{ nfs_server_daemon }} state=started enabled=yes" when: nfs_exports|length