Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/ansiblecmdb/data/tpl/html_fancy_defs.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
{"title": "Timestamp", "id": "timestamp", "func": col_gathered, "sType": "string", "visible": False},
{"title": "Product Name", "id": "prodname", "func": col_prodname, "sType": "string", "visible": False},
{"title": "Product Serial","id": "prodserial", "func": col_prodserial, "sType": "string", "visible": False},
{"title": "Board Name", "id": "boardname", "func": col_boardname, "sType": "string", "visible": False},
{"title": "BIOS Version", "id": "biosversion", "func": col_biosversion, "sType": "string", "visible": False},
]

# Include only given columns if -c / --columns is given
Expand Down Expand Up @@ -990,6 +992,14 @@ <h3 class="toggle-collapse ${collapsed_host_class}" id="${host['name']}" data-ho
${jsonxs(host, 'ansible_facts.ansible_product_serial', default='')}
</%def>

<%def name="col_boardname(host, **kwargs)">
${jsonxs(host, 'ansible_facts.ansible_board_name', default='')}
</%def>

<%def name="col_biosversion(host, **kwargs)">
${jsonxs(host, 'ansible_facts.ansible_bios_version', default='')}
</%def>

##
## Detailed host information blocks
##
Expand Down Expand Up @@ -1095,6 +1105,8 @@ <h4 class="toggle-collapse ${collapsed_class}">Hardware</h4>
<tr><th>Vendor</th><td>${jsonxs(host, 'ansible_facts.ansible_system_vendor', default='')}</td></tr>
<tr><th>Product name</th><td>${jsonxs(host, 'ansible_facts.ansible_product_name', default='')}</td></tr>
<tr><th>Product serial</th><td>${jsonxs(host, 'ansible_facts.ansible_product_serial', default='')}</td></tr>
<tr><th>Board name</th><td>${jsonxs(host, 'ansible_facts.ansible_board_name', default='')}</td></tr>
<tr><th>BIOS version</th><td>${jsonxs(host, 'ansible_facts.ansible_bios_version', default='')}</td></tr>
<tr><th>Architecture</th><td>${jsonxs(host, 'ansible_facts.ansible_architecture', default='')}</td></tr>
<tr><th>Form factor</th><td>${jsonxs(host, 'ansible_facts.ansible_form_factor', default='')}</td></tr>
<tr><th>Virtualization role</th><td>${jsonxs(host, 'ansible_facts.ansible_virtualization_role', default='')}</td></tr>
Expand Down
2 changes: 2 additions & 0 deletions src/ansiblecmdb/data/tpl/markdown.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ ${"###"} Hardware
* **Vendor**: ${host['ansible_facts'].get('ansible_system_vendor', '')}
* **Product name**: ${host['ansible_facts'].get('ansible_product_name', '')}
* **Product serial**: ${host['ansible_facts'].get('ansible_product_serial', '')}
* **Board name**: ${host['ansible_facts'].get('ansible_board_name', '')}
* **BIOS version**: ${host['ansible_facts'].get('ansible_bios_version', '')}
* **Architecture**: ${host['ansible_facts'].get('ansible_architecture', '')}
* **Form factor**: ${host['ansible_facts'].get('ansible_form_factor', '')}
* **Virtualization role**: ${host['ansible_facts'].get('ansible_virtualization_role', '')}
Expand Down
2 changes: 2 additions & 0 deletions src/ansiblecmdb/data/tpl/markdown_split_detail.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ ${"###"} <a name="hardware"></a>Hardware
* **Vendor**: ${host['ansible_facts'].get('ansible_system_vendor', '')}
* **Product name**: ${host['ansible_facts'].get('ansible_product_name', '')}
* **Product serial**: ${host['ansible_facts'].get('ansible_product_serial', '')}
* **Board name**: ${host['ansible_facts'].get('ansible_board_name', '')}
* **BIOS version**: ${host['ansible_facts'].get('ansible_bios_version', '')}
* **Architecture**: ${host['ansible_facts'].get('ansible_architecture', '')}
* **Form factor**: ${host['ansible_facts'].get('ansible_form_factor', '')}
* **Virtualization role**: ${host['ansible_facts'].get('ansible_virtualization_role', '')}
Expand Down