From 6144eac326d14e26bbb849abea51c4cf7f3881b6 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Thu, 20 Apr 2017 22:51:59 +0800 Subject: Group test results and report under node Change-Id: I66286787d06c5012c6dcf516cffb9f6fd76522c5 Signed-off-by: Yujun Zhang --- resources/roles/inxi/templates/system-info.j2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 resources/roles/inxi/templates/system-info.j2 (limited to 'resources/roles/inxi/templates/system-info.j2') diff --git a/resources/roles/inxi/templates/system-info.j2 b/resources/roles/inxi/templates/system-info.j2 new file mode 100644 index 00000000..305a2af2 --- /dev/null +++ b/resources/roles/inxi/templates/system-info.j2 @@ -0,0 +1,16 @@ +System Information from inxi +============================ + +{% for host in groups['compute'] %} +{{ hostvars[host].ansible_hostname }} +----------------------------- + +{{ ('CPU Brand', hostvars[host].system_info.cpu[0])|justify }} +{{ ('Disk', hostvars[host].system_info.disk[0])|justify }} +{{ ('Host Name', hostvars[host].system_info.hostname[0])|justify }} +{{ ('Kernel', hostvars[host].system_info.kernel[0])|justify }} +{{ ('Memory', hostvars[host].system_info.memory[0])|justify }} +{{ ('Operating System', hostvars[host].system_info.os[0])|justify }} +{{ ('Product', hostvars[host].system_info.product[0])|justify }} + +{% endfor %} -- cgit 1.2.3-korg