| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title></title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
- <meta name="viewport" content="width=600" />
- <style>
- table.blueTable {
- border: 1px solid #CCCCCC;
- width: 100%;
- text-align: left;
- }
- table.blueTable td, table.blueTable th {
- # padding: 3px 3px;
- }
- table.blueTable tbody td {
- font-size: 13px;
- font-weight: bold;
- color: #666666;
- }
- table.blueTable td:nth-child(even) {
- font-weight: normal;
- }
- table.blueTable thead {
- background: #CFCFCF;
- border-bottom: 2px solid #444444;
- }
- table.blueTable thead th {
- font-weight: bold;
- color: #003399;
- }
- table.blueTable tfoot td {
- font-size: 14px;
- }
- table.blueTable tfoot .links {
- text-align: right;
- }
- table.blueTable tfoot .links a{
- display: inline-block;
- background: #1C6EA4;
- color: #FFFFFF;
- padding: 2px 8px;
- border-radius: 5px;
- }
- h2 {
- font-size: 10pt;
- color: #666666;
- border-bottom: 1px solid #CCCCCC;
- margin-top: 15px;
- }
- </style>
- </head>
- <body>
- <h2>Server Übersicht</h2>
- <table class="blueTable">
- <thead>
- <tr>
- <th colspan="2">Host Informationen</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td># Distribution:</td>
- <td>{{ ansible_distribution}} {{ansible_distribution_version}} ({{ ansible_distribution_release }})</td>
- </tr>
- <tr>
- <td># Vendor:</td>
- <td>{{ ansible_system_vendor }}</td>
- </tr>
- <tr>
- <td># FQDN:</td>
- <td>{{ ansible_fqdn }}</td>
- </tr>
- <tr>
- <td># Product:</td>
- <td>{{ ansible_product_name }}</td>
- </tr>
- <tr>
- <td># IP-Adressen:</td>
- <td>{{ ansible_eth0.ipv4.address }} ({{ ansible_eth0.device }})</td>
- </tr>
- </tbody>
- </tr>
- </table>
- <h2>neue Paketinformationen holen </h2>
- <table class="blueTable">
- <thead>
- <tr>
- <th colspan="2">apt-get update</th>
- </tr>
- </thead>
- <tbody>
- {% for line in apt_update.stdout_lines %}
- <tr>
- <td># LOG:</td>
- <td>{{ line }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </tr>
- </table>
- </body>
|