Skip to content

Commit

Permalink
BUGFIX: switch the version comparison from float to ansible.builtin.v…
Browse files Browse the repository at this point in the history
…ersion
  • Loading branch information
medanthelinium committed Jun 26, 2024
1 parent 0a4aa41 commit fcf40de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/config_db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fcf40de

Please sign in to comment.