diff --git a/.github/workflows/nginx_hardening.yml b/.github/workflows/nginx_hardening.yml index 7425ef8f..be0f2c36 100644 --- a/.github/workflows/nginx_hardening.yml +++ b/.github/workflows/nginx_hardening.yml @@ -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