Resetup galera

pull/14/head
Emilien Mantel 2016-10-03 12:16:56 +02:00
parent e3e3ae1a05
commit 4a5a3ec75c
3 changed files with 4 additions and 4 deletions

View File

@ -136,6 +136,6 @@ percona_repository: 'http://repo.percona.com/apt'
# Galera
mysql_galera_bootstrap: false
mysql_galera_resetup: false
mariadb_galera_members: []
mysql_galera_primary_node: 'change_me' # See: https://github.com/ansible/ansible/issues/17453

View File

@ -23,7 +23,7 @@
register: bootstrap_run
when: ansible_service_mgr != 'systemd'
when: not s.stat.exists
when: not s.stat.exists or mysql_galera_resetup
- name: COMMAND | Create Bootstrap mark
command: "touch {{ booboo }}"

View File

@ -19,8 +19,8 @@
- name: SERVICE | Restart now (prevent bugs)
service: name=mysql state=restarted
when: >
config.changed or
extraconfig.changed
(config.changed or extraconfig.changed) and
not mysql_galera_resetup
- name: TEMPLATE Create .my.cnf for root
template: src=root/my.cnf dest=/root/.my.cnf owner=root group=root mode=0600 backup=yes