From 0b2657e546a88abf2b6330ae96f7df8bd9f00442 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 24 May 2026 15:06:13 +0800 Subject: [PATCH] fix(awooop): locate ansible catalog from api cwd --- apps/api/src/services/awooop_truth_chain_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/api/src/services/awooop_truth_chain_service.py b/apps/api/src/services/awooop_truth_chain_service.py index ec54c6a5..898aa6a6 100644 --- a/apps/api/src/services/awooop_truth_chain_service.py +++ b/apps/api/src/services/awooop_truth_chain_service.py @@ -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 = (