No need to list the other nodes system information 43/35043/1
authorzhihui wu <wu.zhihui1@zte.com.cn>
Fri, 19 May 2017 08:00:54 +0000 (16:00 +0800)
committerzhihui wu <wu.zhihui1@zte.com.cn>
Fri, 19 May 2017 08:00:54 +0000 (16:00 +0800)
Change-Id: Ia1d4da97ac30c767446be964f33a6edb1af756e4
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
resources/ansible_roles/inxi/templates/system-info.j2

index 305a2af..2108a97 100644 (file)
@@ -1,16 +1,10 @@
 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 %}
+{{ ('CPU Brand', system_info.cpu[0])|justify }}
+{{ ('Disk', system_info.disk[0])|justify }}
+{{ ('Host Name', system_info.hostname[0])|justify }}
+{{ ('Kernel', system_info.kernel[0])|justify }}
+{{ ('Memory', system_info.memory[0])|justify }}
+{{ ('Operating System', system_info.os[0])|justify }}
+{{ ('Product', system_info.product[0])|justify }}