Enabling serial in mariadb fixes the issue. The problem is that restarting all mariadb containers at the same time loose cluster quorum.
Using this: export ANSIBLE_SERIAL=1
And applying this patch:
diff --git a/ansible/site.yml b/ansible/site.yml index 9b705a3..8368e9d 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -133,6 +133,7 @@ - name: Apply role mariadb gather_facts: false hosts: mariadb + serial: '{{ serial|default("0") }}' roles: - { role: mariadb, tags: mariadb,
Enabling serial in mariadb fixes the issue. The problem is that restarting all mariadb containers at the same time loose cluster quorum.
Using this:
export ANSIBLE_SERIAL=1
And applying this patch:
diff --git a/ansible/site.yml b/ansible/site.yml
index 9b705a3..8368e9d 100644
--- a/ansible/site.yml
+++ b/ansible/site.yml
@@ -133,6 +133,7 @@
- name: Apply role mariadb
gather_facts: false
hosts: mariadb
+ serial: '{{ serial|default("0") }}'
roles:
- { role: mariadb,
tags: mariadb,