From 9c5678995183b957ea1ab8a2e51080c7ff64286f Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 1 Mar 2026 00:59:52 -0700 Subject: [PATCH] Add diagnostic script to check Semaphore runner ansible config --- scripts/diagnose.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/diagnose.sh diff --git a/scripts/diagnose.sh b/scripts/diagnose.sh new file mode 100755 index 0000000..a3a3d76 --- /dev/null +++ b/scripts/diagnose.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -e +echo "=== whoami ===" +whoami + +echo "=== /etc/ansible/ansible.cfg ===" +cat /etc/ansible/ansible.cfg 2>/dev/null || echo "(not found)" + +echo "=== ANSIBLE env vars ===" +env | grep -i ansible || echo "(none)" + +echo "=== which sudo ===" +which sudo 2>/dev/null || echo "(not found)" + +echo "=== ansible --version ===" +ansible --version 2>/dev/null | head -5 || echo "(not found)" + +echo "=== ansible.cfg in cwd ===" +cat ansible.cfg 2>/dev/null || echo "(not found)" + +echo "DONE"