mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-03-02 10:42:09 +07:00
Galera must not be restarted after bootstrap first node
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
mysql_origin: 'default'
|
||||
mysql_vendor: 'mariadb'
|
||||
mysql_root_password: 'change_me_NOW'
|
||||
mysql_notify_restart: true
|
||||
|
||||
# -------------------------------------
|
||||
# Configuration
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
|
||||
- name: restart mysql
|
||||
action: service name=mysql state=restarted enabled=yes
|
||||
when: mysql_notify_restart
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
register: s
|
||||
|
||||
- block:
|
||||
- name: SET_FACT | We must NOT restart after bootstrap!
|
||||
set_fact:
|
||||
mysql_notify_restart: false
|
||||
|
||||
- name: SERVICE | Stop MariaDB
|
||||
service: name=mysql state=stopped
|
||||
|
||||
Reference in New Issue
Block a user