add temporary fix for nginx ci tests (#710)

Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
This commit is contained in:
schurzi 2023-11-12 12:41:15 +01:00 committed by GitHub
parent e4cfa198af
commit 57d2d524b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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