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
This commit is contained in:
Markos Chandras
2018-03-13 17:40:25 +00:00
parent 4b72c6d263
commit 3601c2e91a

View File

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