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: Ie004fe62d37ad704d649a5e71e5ab3776491a521
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
Dmitriy Rabotyagov
2026-03-03 12:45:13 +01:00
parent 1f2a375278
commit e4d5d06a6f
4 changed files with 5 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ driver:
platforms:
- name: "systemd-service-${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

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

View File

@@ -16,10 +16,10 @@
hosts: network_hosts
gather_facts: true
roles:
- role: "{{ playbook_dir | dirname | basename }}"
- role: systemd_networkd
vars:
systemd_interface_cleanup: true
systemd_run_networkd: yes
systemd_run_networkd: true
systemd_netdevs:
- NetDev:
Name: dummy2

View File

@@ -18,7 +18,7 @@
hosts: network_hosts
gather_facts: true
roles:
- role: "{{ playbook_dir | dirname | basename }}"
- role: systemd_networkd
vars:
systemd_networkd_link:
MACAddressPolicy: "persistent"