mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-23 05:10:24 -07:00
Enhance installation of mysql_client
Initially I wanted to install mysql-client-5.7 to test mysql server 5.7 but this package is not available for Ubuntu 18+. I keep those changes because it allow us to specify the name of the package based on the Ubuntu version.
This commit is contained in:
parent
f8390aa50f
commit
a473e06e57
3 changed files with 17 additions and 2 deletions
11
tests/integration/targets/setup_controller/tasks/client.yml
Normal file
11
tests/integration/targets/setup_controller/tasks/client.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
|
||||
# Is some tests, we use the local mysql client with the shell module.
|
||||
|
||||
- name: "{{ role_name }} | client | Install mysql client"
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- "{{ db_engine ~ '-client' }}"
|
||||
state: present
|
||||
environment:
|
||||
DEBIAN_FRONTEND: noninteractive
|
|
@ -3,7 +3,6 @@
|
|||
- name: "{{ role_name }} | install | Required package for testing"
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- mysql-client
|
||||
- iproute2
|
||||
- python3-cryptography # To authenticate with MySQL 8+
|
||||
state: present
|
||||
|
|
|
@ -8,10 +8,15 @@
|
|||
ansible.builtin.import_tasks:
|
||||
file: install.yml
|
||||
|
||||
# setvars.yml requires the iproute2 package installed by install.yml
|
||||
- name: Set variables
|
||||
ansible.builtin.import_tasks:
|
||||
file: setvars.yml
|
||||
|
||||
- name: Install MySQL connector
|
||||
- name: Install MySQL local client
|
||||
ansible.builtin.import_tasks:
|
||||
file: client.yml
|
||||
|
||||
- name: Install MySQL Python connector
|
||||
ansible.builtin.import_tasks:
|
||||
file: connector.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue