mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-23 13:20:25 -07:00
27 lines
745 B
YAML
27 lines
745 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 | install python packages"
|
|
ansible.builtin.pip:
|
|
name: "{{ python_packages }}"
|
|
register: connector
|
|
|
|
- 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
|