mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-04 01:30:32 -07:00
* initial commit * removed remaining references to community.general * enabled integration pipeline * switched from preconfigured replication topology to simple multinode install * updated version from 1.0.0 to 0.1.0
28 lines
1 KiB
YAML
28 lines
1 KiB
YAML
---
|
|
- name: "{{ role_name }} | setvars | split mysql version in parts"
|
|
set_fact:
|
|
mysql_version_parts: "{{ mysql_version.split('.') }}"
|
|
|
|
- name: "{{ role_name }} | setvars | get mysql major version"
|
|
set_fact:
|
|
mysql_major_version: "{{ mysql_version_parts[0] + '.' + mysql_version_parts[1] }}"
|
|
|
|
- name: "{{ role_name }} | setvars | set the appropriate extension dependent on the mysql version"
|
|
set_fact:
|
|
mysql_compression_extension: "{{ mysql_version is version('8.0.0', '<') | ternary('gz', 'xz') }}"
|
|
|
|
- name: "{{ role_name }} | setvars | set the install type"
|
|
set_fact:
|
|
install_type: "{{ mariadb_install | ternary('mariadb', 'mysql') }}"
|
|
|
|
- name: "{{ role_name }} | setvars | set install_version"
|
|
set_fact:
|
|
install_version: "{{ lookup('vars', install_type + '_version') }}"
|
|
|
|
- name: "{{ role_name }} | setvars | set install_tarball"
|
|
set_fact:
|
|
install_tarball: "{{ lookup('vars', install_type + '_tarball') }}"
|
|
|
|
- name: "{{ role_name }} | setvars | set install_src"
|
|
set_fact:
|
|
install_src: "{{ lookup('vars', install_type + '_src') }}"
|