mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-03 04:34:27 -07:00
Prepare controller with Podman/Docker Network
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.
This commit is contained in:
parent
06666690eb
commit
b72ca0d214
53 changed files with 206 additions and 362 deletions
|
@ -1,32 +1,24 @@
|
|||
---
|
||||
|
||||
- name: "{{ role_name }} | install | mysql_client"
|
||||
- name: "{{ role_name }} | install | Required package for testing"
|
||||
ansible.builtin.apt:
|
||||
name: mysql-client
|
||||
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"
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name: "{{ python_packages }}"
|
||||
register: connector
|
||||
|
||||
- name: Extract connector.name.0 content
|
||||
set_fact:
|
||||
connector_name: "{{ connector.name.0 }}"
|
||||
|
||||
- name: Debug connector_name content
|
||||
debug:
|
||||
msg: '{{ connector_name }}'
|
||||
|
||||
- name: Extract connector version
|
||||
set_fact:
|
||||
connector_ver: "{{ connector_name.split('=')[2].strip() }}"
|
||||
|
||||
- name: Debug connector_ver var content
|
||||
debug:
|
||||
msg: '{{ connector_ver }}'
|
||||
|
||||
- name: Ensure fake root folder
|
||||
ansible.builtin.file:
|
||||
path: "{{ playbook_dir }}/root"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue