Add diagnostic script to check Semaphore runner ansible config

This commit is contained in:
sam 2026-03-01 00:59:52 -07:00
parent 1029cccc11
commit 9c56789951

21
scripts/diagnose.sh Executable file
View File

@ -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"