Galera must not be restarted after bootstrap first node

pull/14/head
Emilien Mantel 2016-09-25 15:29:51 +02:00
parent c984f19d53
commit 0d64e53eab
3 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@
mysql_origin: 'default'
mysql_vendor: 'mariadb'
mysql_root_password: 'change_me_NOW'
mysql_notify_restart: true
# -------------------------------------
# Configuration

View File

@ -2,3 +2,4 @@
- name: restart mysql
action: service name=mysql state=restarted enabled=yes
when: mysql_notify_restart

View File

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