Backport mysql_version_parts variable assignation

This commit is contained in:
Laurent Indermuehle 2022-11-09 23:26:37 +01:00
parent caea3ef12b
commit 79046a88cb
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -1,7 +1,12 @@
---
- name: "{{ role_name }} | setvars | split mysql version in parts"
set_fact:
mysql_version_parts: "{{ mysql_version.split('.') }}"
mysql_version_parts: >-
{%- if mariadb_install -%}
{{ mariadb_version.split('.') }}
{%- else -%}
{{ mysql_version.split('.') }}
{%- endif -%}
- name: "{{ role_name }} | setvars | get mysql major version"
set_fact: