From 5d1f8bf4e1f0a628cbb4ca41cc60999e4664bc8a Mon Sep 17 00:00:00 2001 From: Hugh Saunders Date: Tue, 12 Jan 2016 09:41:00 +0000 Subject: [PATCH] Ensure fallback galera restarts are notified Notifies are only fired when the result of a task is "changed". In this case we want the fallback handlers to be notified when the initial handler fails so we set changed_when: result|failed. Change-Id: Ib12e8de961d9c55ed3701cc883a00de878211c27 Closes-Bug: #1533126 --- handlers/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handlers/main.yml b/handlers/main.yml index 8cf22b82..0d21083d 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -22,6 +22,8 @@ MYSQLD_STARTUP_TIMEOUT: 180 when: not galera_running_and_bootstrapped | bool register: galera_restart + # notifies are only fired when status is "changed" + changed_when: galera_restart | failed failed_when: false notify: - "remove stale .sst"