Sanitized mirror from private repository - 2026-03-19 09:41:34 UTC
This commit is contained in:
12
docs/advanced/ansible/playbooks/system_info.yml
Normal file
12
docs/advanced/ansible/playbooks/system_info.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- 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) }}"
|
||||
Reference in New Issue
Block a user