Fix: Add ANSIBLE_ROLES_PATH to workflow 82/73982/1 master
authorAnil Belur <abelur@linuxfoundation.org>
Sat, 13 Dec 2025 01:51:32 +0000 (11:51 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Sat, 13 Dec 2025 01:58:58 +0000 (11:58 +1000)
Set ANSIBLE_ROLES_PATH in the GitHub Actions workflow to ensure
Ansible can properly resolve the role path when using dynamic role
name lookup in converge.yml.

This fixes the 'role not found' error in molecule tests on GitHub
Actions runners.

Change-Id: I6741397ed846e7e87286434885f593620dacee74
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
.github/workflows/gerrit-verify.yaml

index 554ba56..8890a1a 100644 (file)
@@ -140,6 +140,7 @@ jobs:
           ANSIBLE_FORCE_COLOR: "1"
           MOLECULE_PLATFORM_NAME: ${{ matrix.distro }}
           MOLECULE_PROJECT_DIRECTORY: ${{ github.workspace }}
+          ANSIBLE_ROLES_PATH: ${{ github.workspace }}/..
 
   vote:
     if: ${{ always() }}