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: I5f80f3f29349782ce829913ef4ee7145c75bd64b
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
Dmitriy Rabotyagov
2026-03-03 12:52:12 +01:00
parent e1cfea5296
commit 6022cb22be
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ driver:
platforms:
- name: "systemd-mount-${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
+1
View File
@@ -0,0 +1 @@
../../
+1 -1
View File
@@ -17,7 +17,7 @@
- name: Playbook for role testing
hosts: mount_hosts
roles:
- role: "{{ playbook_dir | dirname | basename }}"
- role: systemd_mount
vars:
systemd_mounts: