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:
@@ -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
|
||||
|
||||
1
tests/roles/systemd_networkd
Symbolic link
1
tests/roles/systemd_networkd
Symbolic link
@@ -0,0 +1 @@
|
||||
../../
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user