Skip to content

Commit

Permalink
Use RegExp to detect installed MariaDB version (#223)
Browse files Browse the repository at this point in the history
* Use RegExp to detect installed MariaDB version
* Fix typo
  • Loading branch information
fnwbr authored Sep 17, 2024
1 parent 2804a6c commit 84e1fe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tasks/setup_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,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
Expand Down

0 comments on commit 84e1fe1

Please sign in to comment.