Galera must not be restarted after bootstrap first node
parent
c984f19d53
commit
0d64e53eab
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue