tasks: galera_upgrade_post: Retry if starting the MariaDB service failed

Similar to the galera_running_check play, we should retry a few more
times if the MariaDB service failed to start.

Change-Id: Ie07468a065af0668db1da1d52b81af3fcee53dca
This commit is contained in:
Markos Chandras 2017-05-25 12:10:47 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 22a87ddf74
commit 531bf8ed2a
2 changed files with 10 additions and 1 deletions

View File

@ -17,6 +17,13 @@
service:
name: mysql
state: started
# NOTE (hwoarang) Sometimes the service fails to start on the first attempt
# so just try a few more times before giving up. Clearly this needs to be
# investigated at some point...
register: mysql_service_started
until: mysql_service_started | success
retries: "{{ num_retries }}"
delay: "{{ wait_delay }}"
tags:
- galera-upgrade

View File

@ -57,7 +57,9 @@
tags: galera_server-config
- include: galera_upgrade_post.yml
static: no
vars:
num_retries: 3
wait_delay: 3
tags: galera_server-upgrade
when:
- galera_upgrade | bool