diff --git a/ansible/roles/mariadb/templates/wsrep-notify.sh.j2 b/ansible/roles/mariadb/templates/wsrep-notify.sh.j2 index 73acde3fe6..ae53574bbe 100644 --- a/ansible/roles/mariadb/templates/wsrep-notify.sh.j2 +++ b/ansible/roles/mariadb/templates/wsrep-notify.sh.j2 @@ -57,7 +57,11 @@ Synced) Donor) # enabling donor only if xtrabackup configured SST_METHOD=`get_sst_method` - [[ $SST_METHOD =~ 'xtrabackup' ]] && CMD=$ENABLE_LB || CMD=$DISABLE_LB + if [[ $SST_METHOD =~ (mariabackup|xtrabackup) ]]; then + CMD=$ENABLE_LB + else + CMD=$DISABLE_LB + fi ;; Undefined) # shutting down database: do nothing