---
- name: Simple Connection Test
  hosts: pve_cluster
  gather_facts: no
  tasks:
    - name: Test basic connectivity
      ping:
      register: ping_result

    - name: Show connection status
      debug:
        msg: "✅ {{ inventory_hostname }} is online and reachable"
      when: ping_result is succeeded

    - name: Show connection failure
      debug:
        msg: "❌ {{ inventory_hostname }} is not reachable"
      when: ping_result is failed