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: 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