Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use RegExp to detect installed MariaDB version #223

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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
Expand Down
Loading