mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-26 06:31:27 -07:00
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.
21 lines
582 B
YAML
21 lines
582 B
YAML
---
|
|
|
|
- name: "{{ role_name }} | install | Required package for testing"
|
|
ansible.builtin.apt:
|
|
name:
|
|
- iproute2
|
|
- python3-cryptography # To authenticate with MySQL 8+
|
|
state: present
|
|
update_cache: true
|
|
environment:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
- name: "{{ role_name }} | install | Ensure fake root folder"
|
|
ansible.builtin.file:
|
|
path: "{{ playbook_dir }}/root"
|
|
state: directory
|
|
|
|
- name: "{{ role_name }} | install | Ensure fake root default file exists"
|
|
ansible.builtin.file:
|
|
path: "{{ playbook_dir }}/root/.my.cnf"
|
|
state: touch
|