From a2c2cbb6ab5984c2b04cd549e1c5e3c9a54058bc Mon Sep 17 00:00:00 2001 From: Kevin Thompson Date: Thu, 7 Aug 2025 22:16:34 -0500 Subject: [PATCH] MOAR DEBUG --- playbooks/tests/debug_host_vars.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 playbooks/tests/debug_host_vars.yml diff --git a/playbooks/tests/debug_host_vars.yml b/playbooks/tests/debug_host_vars.yml new file mode 100644 index 0000000..813a2b7 --- /dev/null +++ b/playbooks/tests/debug_host_vars.yml @@ -0,0 +1,19 @@ +--- +- name: Ensure correct SSH user for all Linode hosts + hosts: debian_hosts + gather_facts: false + vars: + ansible_user: phlux + ansible_ssh_user: phlux + ansible_ssh_common_args: '-o StrictHostKeyChecking=no' + tasks: + - name: Test connectivity with correct user + ansible.builtin.ping: + register: ping_result + + - name: Display connection results + ansible.builtin.debug: + msg: | + {{ inventory_hostname }}: {{ 'SUCCESS' if ping_result is succeeded else 'FAILED' }} + Connected as: {{ ansible_user }} + IP: {{ ansible_host }}