diff --git a/roles/inventory/linode/tasks/main.yml b/roles/inventory/linode/tasks/main.yml index 835697e..b9b8997 100644 --- a/roles/inventory/linode/tasks/main.yml +++ b/roles/inventory/linode/tasks/main.yml @@ -224,9 +224,28 @@ delegate_to: localhost ignore_errors: true -- name: Skip SSH test for now and proceed +- name: Check SSH configuration and keys + ansible.builtin.shell: | + echo "=== SSH configuration ===" + echo "SSH_AUTH_SOCK: ${SSH_AUTH_SOCK:-not set}" + echo "=== SSH keys available ===" + ssh-add -l 2>/dev/null || echo "No SSH agent or no keys loaded" + echo "=== SSH config ===" + ls -la ~/.ssh/ 2>/dev/null || echo "No .ssh directory" + echo "=== Test SSH to git.ewnix.net ===" + ssh -T git@git.ewnix.net -o ConnectTimeout=10 -o StrictHostKeyChecking=no 2>&1 || echo "SSH test completed with exit code $?" + register: ssh_debug + delegate_to: localhost + ignore_errors: true + +- name: Display SSH debug information ansible.builtin.debug: - msg: "Skipping SSH test to avoid hanging - will attempt Git operations directly" + msg: | + SSH Debug Results: + {{ ssh_debug.stdout }} + + SSH Errors: + {{ ssh_debug.stderr | default('No SSH errors') }} - name: Create inventory directory ansible.builtin.file: