From 3601c2e91a4ef44cdd43f4c1ff896e3218b01f07 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 13 Mar 2018 17:40:25 +0000 Subject: [PATCH] tasks: galera_post_install: Do not secure the DB on upgrades When we perform a DB upgrade we do not need to secure the DB again since it's already secure. Moreover, the script also forces the node to leave the cluster by stopping the service and it doesn't make it join it again properly leading to start-up failures. Change-Id: I2218b97d5759f253f8390ea38e093b288b923b2b --- tasks/galera_post_install.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/galera_post_install.yml b/tasks/galera_post_install.yml index 114cb50e..5dd5f55a 100644 --- a/tasks/galera_post_install.yml +++ b/tasks/galera_post_install.yml @@ -53,6 +53,7 @@ mode: "0750" when: - ansible_pkg_mgr != "apt" + - not galera_upgrade - name: Run galera secure command: "/usr/local/bin/galera_secure_node" @@ -61,6 +62,7 @@ warn: no when: - ansible_pkg_mgr != "apt" + - not galera_upgrade tags: - skip_ansible_lint