add temporary fix for nginx ci tests (#710)

Signed-off-by: Martin Schurz <[email protected]>
This commit is contained in:
schurzi authored and GitHub committed 2023-11-12 12:41:15 +01:00
1 parent e4cfa198af
commit 57d2d524b3
1 file changed
+10
+10
View File
@@ -68,6 +68,16 @@ jobs:
pip install -r requirements.txt
working-directory: ansible_collections/devsec/hardening
# Molecule has problems detecting the proper location for installing roles
# https://github.com/ansible/molecule/issues/3806
# we do not set a custom role path, but the automatically determined install path used is not compatible with the location molecule expects the role
# see CI logs of this action "INFO Set ANSIBLE_ROLES_PATH" should not be present, since we do not set a custom path
# we have to find a proper way to configure this
- name: Temporary fix for roles
run: |
mkdir -p /home/runner/.ansible
ln -s /home/runner/work/ansible-collection-hardening/ansible-collection-hardening/ansible_collections/devsec/hardening/roles /home/runner/.ansible/roles
- name: Test with molecule
run: |
molecule --version