Symlink the role into tests

Ansible Core 2.19 has a different set of default paths to look for roles
so molecule test is failing now.

Let's create a symlink of the role into the tests repo for the test
playbook to find content of the role easily.

Change-Id: I39b99208b4991c44e0cc9c489e7b34d80ab94855
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
Dmitriy Rabotyagov
2026-03-03 13:51:59 +01:00
parent 648fbfcd70
commit f9c451ec02
5 changed files with 7 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ driver:
platforms:
- name: "haproxy-${MOLECULE_SCENARIO_NAME}"
image: "${DOCKER_REGISTRY:-quay.io/gotmax23}/${DOCKER_IMAGE_TAG:-debian-systemd:bookworm}"
image: "${DOCKER_REGISTRY:-quay.io/gotmax23}/${DOCKER_IMAGE_TAG:-debian-systemd:trixie}"
command: ${DOCKER_COMMAND:-""}
pre_build_image: true
privileged: true

View File

@@ -8,6 +8,9 @@ collections:
- name: community.crypto
source: https://github.com/ansible-collections/community.crypto
type: git
- name: https://opendev.org/openstack/openstack-ansible-plugins
type: git
version: master
- name: ansible.utils
source: https://github.com/ansible-collections/ansible.utils
type: git

1
tests/roles/haproxy_server Symbolic link
View File

@@ -0,0 +1 @@
../../

View File

@@ -18,4 +18,4 @@
vars_files:
- test-vars.yml
roles:
- "{{ playbook_dir | dirname | basename }}"
- haproxy_server

View File

@@ -9,4 +9,4 @@
- haproxy_service_name: test_absent_service
state: absent
roles:
- "{{ playbook_dir | dirname | basename }}"
- haproxy_server