---
- name: Display system information
  hosts: all
  gather_facts: yes
  tasks:
    - name: Print system details
      debug:
        msg:
          - "Hostname: {{ ansible_hostname }}"
          - "OS: {{ ansible_distribution }} {{ ansible_distribution_version }}"
          - "Kernel: {{ ansible_kernel }}"
          - "Uptime (hours): {{ ansible_uptime_seconds | int / 3600 | round(1) }}"
