CLI: Fix playbook output freeze by removing capture_output

The deploy wrapper previously used subprocess.run(..., capture_output=True),
which buffered all Ansible output until the playbook finished.
This made the CLI appear stuck at 'Launching Ansible Playbook…'.

Switching to subprocess.run(cmd) restores live streaming of Ansible output.

Details: https://chatgpt.com/share/693008b4-b7b0-800f-bd35-5a307a76fc59
This commit is contained in:
2025-12-03 10:54:31 +01:00
parent 629e6194f9
commit a6ed047765

View File

@@ -120,12 +120,7 @@ def run_ansible_playbook(
print("\n🚀 Launching Ansible Playbook...\n")
# Capture output so the real Ansible error is visible before exit
result = subprocess.run(cmd, text=True, capture_output=True)
if result.stdout:
print(result.stdout, end="")
if result.stderr:
print(result.stderr, file=sys.stderr, end="")
result = subprocess.run(cmd)
if result.returncode != 0:
print(