Add diagnostic script to check Semaphore runner ansible config
This commit is contained in:
parent
1029cccc11
commit
9c56789951
21
scripts/diagnose.sh
Executable file
21
scripts/diagnose.sh
Executable 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"
|
||||
Loading…
x
Reference in New Issue
Block a user