22 lines
490 B
Bash
Raw Normal View History

#!/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"