From 2d6e5080841bd34a2a7df7a6e3d14e08340c3e31 Mon Sep 17 00:00:00 2001 From: ChengHao Yang <17496418+tico88612@users.noreply.github.com> Date: Wed, 31 Dec 2025 17:42:34 +0800 Subject: [PATCH] Fix: molecule 25.12.0 test (#12808) * Bump molecule to 25.12.0 Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com> * Fixed ansible role not found in molecule after 25.2.0 Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com> --------- Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com> Signed-off-by: ChengHao Yang --- roles/adduser/molecule/default/molecule.yml | 2 ++ roles/bastion-ssh-config/molecule/default/molecule.yml | 2 ++ roles/bootstrap_os/molecule/default/molecule.yml | 2 ++ tests/requirements.txt | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/adduser/molecule/default/molecule.yml b/roles/adduser/molecule/default/molecule.yml index 8f697909e..63123ba5f 100644 --- a/roles/adduser/molecule/default/molecule.yml +++ b/roles/adduser/molecule/default/molecule.yml @@ -9,6 +9,8 @@ platforms: vm_memory: 512 provisioner: name: ansible + env: + ANSIBLE_ROLES_PATH: ../../../ config_options: defaults: callbacks_enabled: profile_tasks diff --git a/roles/bastion-ssh-config/molecule/default/molecule.yml b/roles/bastion-ssh-config/molecule/default/molecule.yml index ea3692597..c0c007d09 100644 --- a/roles/bastion-ssh-config/molecule/default/molecule.yml +++ b/roles/bastion-ssh-config/molecule/default/molecule.yml @@ -9,6 +9,8 @@ platforms: vm_memory: 512 provisioner: name: ansible + env: + ANSIBLE_ROLES_PATH: ../../../ config_options: defaults: callbacks_enabled: profile_tasks diff --git a/roles/bootstrap_os/molecule/default/molecule.yml b/roles/bootstrap_os/molecule/default/molecule.yml index df969f4f7..78dd4bcef 100644 --- a/roles/bootstrap_os/molecule/default/molecule.yml +++ b/roles/bootstrap_os/molecule/default/molecule.yml @@ -21,6 +21,8 @@ platforms: vm_memory: 512 provisioner: name: ansible + env: + ANSIBLE_ROLES_PATH: ../../../ config_options: defaults: callbacks_enabled: profile_tasks diff --git a/tests/requirements.txt b/tests/requirements.txt index 57b9cee52..fd85a816d 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,4 +1,4 @@ -r ../requirements.txt distlib==0.4.0 # required for building collections -molecule==25.1.0 +molecule==25.12.0 pytest-testinfra==10.2.2