-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html.j2
31 lines (28 loc) · 1.32 KB
/
index.html.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>
<head>
<title>Information page: {{ ansible_hostname }}</title>
<style type="text/css">@import url('./stylesheet.css') all;</style>
</head>
<body>
<h1>Information about running host</h1>
<table>
<tr> <th colspan='2'>OS Facts</th> </tr>
<tr> <td>This system is running on</td> <td>{{ ansible_distribution }}</td> </tr>
<tr> <td>Version:</td> <td>{{ ansible_distribution_version }}</td> </tr>
<tr> <td>OS Family:</td> <td>{{ ansible_os_family}}</td> </tr>
<tr> <td>Used package manager:</td> <td>{{ ansible_pkg_mgr }}</td> </tr>
<tr> <td>AppArmor</td> <td>{{ ansible_apparmor['status'] }}</td> </tr>
<tr> <td>Selinux</td> <td>{{ ansible_selinux['status'] }}</td> </tr>
<tr> <td>Python Version</td> <td>{{ ansible_python_version }}</td> </tr>
</table>
<table style='float:left;margin-right:50px'>
<tr> <th colspan='2'>Network information</th> </tr>
<tr> <td>Hostname</td> <td>{{ ansible_nodename }}</td> </tr>
<tr> <td>IPv4 addresses</td> <td>{{ ", ".join(ansible_all_ipv4_addresses) }}</td> </tr>
<tr> <td>IPv6 addresses</td> <td>{{ ", ".join(ansible_all_ipv6_addresses) }}</td> </tr>
<tr> <td>DNS servers</td> <td>{{ ", ".join(ansible_dns['nameservers']) }}</td> </tr>
<tr> <td>Hostname</td> <td>{{ ansible_hostname }}</td> </tr>
<tr> <td>FQDN</td> <td>{{ ansible_fqdn }}</td> </tr>
</table>
</body>
</html>