ansible-role-mysql icon indicating copy to clipboard operation
ansible-role-mysql copied to clipboard

Wrong mysql_cli_version fact for MariaDB

Open carlosgo13 opened this issue 9 months ago • 2 comments

Hello.

I am using newest role 5.0 version and seems there is a bug when installing mariadb-server. mysql_cli_version variable is being defined as 10.x.xx-MariaDB instead of 10.x.xx. Therefore, these tasks are being skipped https://github.com/geerlingguy/ansible-role-mysql/blob/master/tasks/secure-installation.yml#L44-L87.

Is this expected?

Thank you.

carlosgo13 avatar Feb 28 '25 15:02 carlosgo13

I can confirm: with 4.3.5 things works normally.

back-2-95 avatar Mar 14 '25 07:03 back-2-95

The fix from pull request https://github.com/geerlingguy/ansible-role-mysql/pull/568 works for me.
Would be nice if this could be merged

kiptix avatar Mar 26 '25 07:03 kiptix

Any idea if this will be merged OR some other PR/change will resolve this issue? @geerlingguy ?

back-2-95 avatar Jun 30 '25 08:06 back-2-95

Hopefully fixed in https://github.com/geerlingguy/ansible-role-mysql/pull/585

geerlingguy avatar Oct 28 '25 22:10 geerlingguy