mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-28 07:31:24 -07:00
We use the Podman/Docker network gateway address to communicate between container. I haven't tested Docker. I would have preferred to use a pod but only Podman support it and ansible-test only support the --docker-network option.
30 lines
739 B
YAML
30 lines
739 B
YAML
---
|
|
|
|
- name: "{{ role_name }} | install | Required package for testing"
|
|
ansible.builtin.apt:
|
|
name:
|
|
- mysql-client
|
|
- iproute2
|
|
# - python3-dev
|
|
# - python3-cryptography
|
|
# - default-libmysqlclient-dev
|
|
# - build-essential
|
|
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: Ensure fake root folder
|
|
ansible.builtin.file:
|
|
path: "{{ playbook_dir }}/root"
|
|
state: directory
|
|
|
|
- name: Ensure fake root default file exists
|
|
ansible.builtin.file:
|
|
path: "{{ playbook_dir }}/root/.my.cnf"
|
|
state: touch
|