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
This commit is contained in:
Hugh Saunders 2016-01-12 09:41:00 +00:00 committed by Jesse Pretorius
parent f6fb63f347
commit 5d1f8bf4e1
1 changed files with 2 additions and 0 deletions

View File

@ -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"