fix(awooop): locate ansible catalog from api cwd
Some checks failed
CD Pipeline / tests (push) Successful in 5m49s
Code Review / ai-code-review (push) Successful in 11s
CD Pipeline / build-and-deploy (push) Failing after 1m25s
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-05-24 15:06:13 +08:00
parent 1322216f73
commit 0b2657e546

View File

@@ -708,9 +708,11 @@ def _execution_backend_summary(records: list[dict[str, Any]]) -> dict[str, Any]:
def _ansible_runtime_readiness() -> dict[str, Any]:
repo_root = Path(__file__).resolve().parents[4]
playbook_roots = [
Path("/app/infra/ansible"),
Path.cwd() / "infra" / "ansible",
repo_root / "infra" / "ansible",
]
playbook_root = next((path for path in playbook_roots if path.exists()), None)
playbook_paths = (