- hosts: all gather_facts: true tasks: - name: Display Hostname debug: msg: "Hostname: {{ ansible_hostname }}" - name: Display Operating System debug: msg: "Operating System: {{ ansible_distribution }} {{ ansible_distribution_version }}" - name: Check CPU and total memory debug: msg: "CPU Architecture: {{ ansible_architecture }}, Total Memory: {{ ansible_memtotal_mb }} MB" - name: Check network interface information debug: msg: "IP Address is {{ ansible_default_ipv4.address }}"