From 32ec0260d2c11417c342ce47cfd2d735a19563c2 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Wed, 24 May 2017 11:34:14 +0100 Subject: [PATCH] Use command instead of debug for handlers Due to the debug message plugin the handler restart messages show at the end of the playbook execution which is a little confusing. Using debug also requires setting changed_when to true which is a little extra bit of code which we do not have to carry. Instead we use the command module which is simple, works and less wordy. Change-Id: I3562ef542ab4c87cd6bac82d916e5696149c8a6b --- handlers/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 6f3f852..4d4d00a 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -14,9 +14,7 @@ # limitations under the License. - name: Restart cloudkitty services - debug: - msg: "Restarting services" - changed_when: true + command: "/bin/true" notify: - Stop services - Copy new policy file into place