From bb208192872c841cafdb27769f3680a56b18fa65 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Sat, 22 Apr 2017 09:06:05 +0800 Subject: Rename folders * copy -> defaults * render -> custom * roles -> ansible_roles Change-Id: Ia96214691873f3bd8e6c5f9f433292fd912ac46e Signed-off-by: Yujun Zhang --- resources/ansible_roles/inxi/templates/system-info.j2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 resources/ansible_roles/inxi/templates/system-info.j2 (limited to 'resources/ansible_roles/inxi/templates') diff --git a/resources/ansible_roles/inxi/templates/system-info.j2 b/resources/ansible_roles/inxi/templates/system-info.j2 new file mode 100644 index 00000000..305a2af2 --- /dev/null +++ b/resources/ansible_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