From fcf40def7083f05eb4c9fca8508017ab7a6f2eb4 Mon Sep 17 00:00:00 2001 From: Wolfgang Medina-Erhardt Date: Wed, 26 Jun 2024 14:17:11 +0200 Subject: [PATCH] BUGFIX: switch the version comparison from float to ansible.builtin.version --- tasks/config_db.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/config_db.yaml b/tasks/config_db.yaml index d9db5ab..4f753cf 100644 --- a/tasks/config_db.yaml +++ b/tasks/config_db.yaml @@ -16,7 +16,7 @@ - name: Check if legacy config location must be used ansible.builtin.set_fact: - mariadb_use_legacy_config_location_result: "{{ mariadb_get_server_version_result.stdout | float < 10.5 }}" + mariadb_use_legacy_config_location_result: "{{ mariadb_get_server_version_result.stdout is version('10.5', '>') }}" - name: Remove obsolete my.cnf when: not mariadb_use_legacy_config_location_result