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:
@@ -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
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
- name: Playbook for role testing
|
||||
hosts: mount_hosts
|
||||
roles:
|
||||
- role: "{{ playbook_dir | dirname | basename }}"
|
||||
- role: systemd_mount
|
||||
|
||||
vars:
|
||||
systemd_mounts:
|
||||
|
||||
Reference in New Issue
Block a user