ansibleawx/gather.yml
2025-07-17 06:47:20 +00:00

19 lines
No EOL
553 B
YAML

- 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 }}"