community.mysql/tests/integration/targets/setup_controller/tasks/install.yml
Laurent Indermuehle 98ce2af28c
Refactor way tests info are passed from sed to file with lookup
The idea is to avoid modifying test targets from the workflow to prevent
ansible-test to think every tests needs to be run.
2023-01-05 19:04:51 +01:00

22 lines
603 B
YAML

---
- name: "{{ role_name }} | install | Required package for testing"
ansible.builtin.apt:
name:
- mysql-client
- 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