From 70ffb6db9012d9c6fadd5bd3f88af8270d7df061 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Mon, 3 Oct 2016 12:30:26 +0200 Subject: [PATCH] Resetup secondary node (galera) --- tasks/galera/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/galera/main.yml b/tasks/galera/main.yml index 8138554..21427a3 100644 --- a/tasks/galera/main.yml +++ b/tasks/galera/main.yml @@ -15,5 +15,7 @@ - name: SERVICE | Restart MariaDB if needed service: name=mysql state=restarted when: > - (galeraconfig or (p is defined and p.changed)) and - (bootstrap_run is not defined) + ((galeraconfig or (p is defined and p.changed)) and + (bootstrap_run is not defined)) or + ((inventory_hostname != mysql_galera_primary_node) and + (mysql_galera_resetup))