mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-31 09:01:24 -07:00
Fix deprecated options from MySQL 8.2 (#662)
* Fix show master status for MySQL 8.2+ * Fix mysqldump option form --master-data to --source-data * Fix incompatibility between mysqldump 8.0 and MySQL 8.4 Installing the same version between the client and the server makes sense anyway. The incompatibility arise when you use mysqldump with --source-data. The the tool tries to perform a SHOW MASTER STATUS which is deprecated in MySQL 8.2+. * Fix missing condition * Fix unit tests * Add a query resolver depending on implementation and version * Sanity * Fix SHOW REPLICA STATUS queries * Fix mariadb's SHOW REPLICA HOSTS query * Fix CHANGE MASTER for MySQL 8.0.23+ * Fix integration test for CHANGE MASTER * Fix integration test for CHANGE MASTER * Fix replication queries for MySQL 8.0.23+ and 8.4+ * Revert file edited by mistake * Enhance tests format
This commit is contained in:
parent
c503dc5b6b
commit
cd9f4fcf57
14 changed files with 503 additions and 94 deletions
|
@ -2,6 +2,38 @@
|
|||
|
||||
# We use the ubuntu2204 image provided by ansible-test.
|
||||
|
||||
# The GPG key is imported in the files folder from:
|
||||
# https://dev.mysql.com/doc/refman/8.4/en/checking-gpg-signature.html
|
||||
# Downloading the key on each iteration of the tests is too slow.
|
||||
- name: Install MySQL PGP public key
|
||||
ansible.builtin.copy:
|
||||
src: files/mysql.gpg
|
||||
dest: /usr/share/keyrings/mysql.gpg
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
when:
|
||||
- db_engine == 'mysql'
|
||||
- db_version is version('8.4', '>=')
|
||||
|
||||
- name: Add Apt signing key to keyring
|
||||
ansible.builtin.apt_key:
|
||||
id: A8D3785C
|
||||
file: /usr/share/keyrings/mysql.gpg
|
||||
state: present
|
||||
when:
|
||||
- db_engine == 'mysql'
|
||||
- db_version is version('8.4', '>=')
|
||||
|
||||
- name: Add MySQL 8.4 repository
|
||||
ansible.builtin.apt_repository:
|
||||
repo: deb http://repo.mysql.com/apt/ubuntu/ jammy mysql-8.4-lts mysql-tools
|
||||
state: present
|
||||
filename: mysql
|
||||
when:
|
||||
- db_engine == 'mysql'
|
||||
- db_version is version('8.4', '>=')
|
||||
|
||||
- name: "{{ role_name }} | Requirements | Install Linux packages"
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue