diff options
author | Justin chi <chigang@huawei.com> | 2015-10-13 09:35:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-10-13 09:35:38 +0000 |
commit | 37c488499bbbc985a30094ac13126283b70d8dd8 (patch) | |
tree | db94ec0f368925dc47a6bdae0647cc6a2af7be43 /deploy/adapters/ansible/roles/database/tasks/mariadb.yml | |
parent | 9a21f7ebde85c551312cb0e235b40cc03294d09e (diff) | |
parent | 85d42c56cafb1b7426677c85f5fa0874c0858568 (diff) |
Merge "make internal vip and public vip into one group"
Diffstat (limited to 'deploy/adapters/ansible/roles/database/tasks/mariadb.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/database/tasks/mariadb.yml | 8 |
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 |