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