Add PoC using custom ansible-test containers

This commit is contained in:
Laurent Indermuehle 2023-01-13 16:22:57 +01:00
parent 199b7a5b64
commit db995249cb
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
6 changed files with 147 additions and 89 deletions

View file

@ -1,6 +1,18 @@
---
- name: "{{ role_name }} | Connector | Install python packages"
ansible.builtin.pip:
name: "{{ connector_name }}"
state: present
# - name: "{{ role_name }} | Connector | Install requirements for mysqlclient"
# ansible.builtin.apt:
# name:
# - python3-dev
# - default-libmysqlclient-dev
# - build-essential
# state: present
# environment:
# DEBIAN_FRONTEND: noninteractive
# when:
# - connector_name == 'mysqlclient'
# - name: "{{ role_name }} | Connector | Install python packages"
# ansible.builtin.pip:
# name: "{{ connector_name_version }}"
# state: present

View file

@ -1,14 +1,14 @@
---
- 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 | Required package for testing"
# ansible.builtin.apt:
# name:
# - iproute2 # To grab docker network gateway address
# - 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:

View file

@ -13,10 +13,10 @@
ansible.builtin.import_tasks:
file: setvars.yml
- name: Install MySQL local client
ansible.builtin.import_tasks:
file: client.yml
# - name: Install MySQL local client
# ansible.builtin.import_tasks:
# file: client.yml
- name: Install MySQL Python connector
ansible.builtin.import_tasks:
file: connector.yml
# - name: Install MySQL Python connector
# ansible.builtin.import_tasks:
# file: connector.yml