Fix CI roles_path when ansible.cfg is in /tmp
Some checks failed
CI / skip-ci-check (pull_request) Successful in 13s
CI / lint-and-test (pull_request) Successful in 12s
CI / ansible-validation (pull_request) Successful in 45s
CI / secret-scanning (pull_request) Successful in 6s
CI / dependency-scan (pull_request) Successful in 13s
CI / sast-scan (pull_request) Successful in 22s
CI / license-check (pull_request) Successful in 12s
CI / vault-check (pull_request) Successful in 10s
CI / playbook-test (pull_request) Successful in 1m12s
CI / container-scan (pull_request) Successful in 6s
CI / sonar-analysis (pull_request) Failing after 3s
CI / workflow-summary (pull_request) Successful in 6s

Use GITHUB_WORKSPACE/roles so playbook syntax-check finds repo roles.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ilia 2026-05-22 21:58:30 -04:00
parent 980423cd61
commit a80a98ff77

View File

@ -112,10 +112,10 @@ jobs:
localhost ansible_connection=local
EOF
cat > /tmp/ci-ansible.cfg <<'EOF'
cat > /tmp/ci-ansible.cfg <<EOF
[defaults]
inventory = /tmp/ci-inventory.ini
roles_path = roles
roles_path = ${GITHUB_WORKSPACE}/roles
host_key_checking = False
stdout_callback = default
callback_result_format = yaml
@ -376,10 +376,10 @@ jobs:
localhost ansible_connection=local
EOF
cat > /tmp/ci-ansible.cfg <<'EOF'
cat > /tmp/ci-ansible.cfg <<EOF
[defaults]
inventory = /tmp/ci-inventory.ini
roles_path = roles
roles_path = ${GITHUB_WORKSPACE}/roles
host_key_checking = False
stdout_callback = default
callback_result_format = yaml