From 95e44f6de19fbdd0bb24ee869df4e85f7f57b9af Mon Sep 17 00:00:00 2001 From: Florian Weber <706419+fnwbr@users.noreply.github.com> Date: Thu, 12 Sep 2024 17:36:55 +0200 Subject: [PATCH 1/2] Use RegExp to detect installed MariaDB version --- tasks/checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/checks.yml b/tasks/checks.yml index 2c10d0f..6170e76 100644 --- a/tasks/checks.yml +++ b/tasks/checks.yml @@ -48,7 +48,7 @@ - name: Extract MariaDB version set_fact: - mariadb_version_checked: "{{ mariadb_version_check.stdout.split(' ')[5] }}" + mariadb_version_checked: "{{ mariadb_version_check | regex_search('\\d+\\.\\d+\\.\\d+-MariaDB') }}" check_mode: false when: not mariadb_upgrade|bool and mariadb_version_check.rc == 0 tags: From 71b940f458604f3dc91f39388dc04ce647bbe2f8 Mon Sep 17 00:00:00 2001 From: Florian Weber <706419+fnwbr@users.noreply.github.com> Date: Thu, 12 Sep 2024 22:45:31 +0200 Subject: [PATCH 2/2] Fix typo --- tasks/setup_cluster.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/setup_cluster.yml b/tasks/setup_cluster.yml index efddf05..659b4f1 100644 --- a/tasks/setup_cluster.yml +++ b/tasks/setup_cluster.yml @@ -124,7 +124,7 @@ when: > not galera_cluster_configured.stat.exists -- name: setup_cluster | custer bootstrap - killing lingering mysql processes to ensure mysql is stopped +- name: setup_cluster | cluster bootstrap - killing lingering mysql processes to ensure mysql is stopped ansible.builtin.command: "pkill {{ mariadb_systemd_service_name }}" # noqa ignore-errors become: true ignore_errors: true