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:
parent
22a87ddf74
commit
531bf8ed2a
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user