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:
Laurent Indermuehle 2023-01-04 11:23:39 +01:00
commit b72ca0d214
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
53 changed files with 206 additions and 362 deletions

View file

@ -1,3 +1,4 @@
---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
@ -23,7 +24,7 @@
- name: alias mysql command to include default options
set_fact:
mysql_command: "mysql -u{{ mysql_user }} -p{{ mysql_password }} -P{{ mysql_primary_port }} --protocol=tcp"
mysql_command: "mysql -u{{ mysql_user }} -p{{ mysql_password }} -P{{ mysql_primary_port }} --protocol=tcp -h{{ gateway_addr }}"
- name: Check state present/absent
include_tasks: state_present_absent.yml