aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/database/tasks/mariadb.yml
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/ansible/roles/database/tasks/mariadb.yml')
-rw-r--r--deploy/adapters/ansible/roles/database/tasks/mariadb.yml8
1 files changed, 2 insertions, 6 deletions
diff --git a/deploy/adapters/ansible/roles/database/tasks/mariadb.yml b/deploy/adapters/ansible/roles/database/tasks/mariadb.yml
index 37c9a2c9..9a9ebda5 100644
--- a/deploy/adapters/ansible/roles/database/tasks/mariadb.yml
+++ b/deploy/adapters/ansible/roles/database/tasks/mariadb.yml
@@ -28,9 +28,7 @@
register: mysql_init_complete
- name: restart first mysql server
- shell: service mysql restart --wsrep-cluster-address="gcomm://"
- args:
- creates: /opt/mysql_init_complete
+ shell: service mysql restart --wsrep-cluster-address="gcomm://" && touch /opt/mysql_init_complete
when: inventory_hostname == haproxy_hosts.keys()[0] and mysql_init_complete.stat.exists == False
tags:
- mysql_restart
@@ -40,9 +38,7 @@
#delay: 5
- name: restart other mysql server
- shell: service mysql restart
- args:
- creates: /opt/mysql_init_complete
+ shell: service mysql restart && touch /opt/mysql_init_complete
tags:
- mysql_restart
when: inventory_hostname != haproxy_hosts.keys()[0] and mysql_init_complete.stat.exists == False