| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <!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>
- /* Tabelle */
- table {
- border: 1px solid #CCCCCC;
- width: 100%;
- text-align: left;
- padding:1px 2px;
- margin:15px;
- }
- /* Tabellen header */
- table thead {
- background: #CFCFCF;
- border-bottom: 2px solid #444444;
- font-size: 13px;
- }
- table thead th {
- font-weight: bold;
- color: #003399;
- }
- /* Tabellen body */
- table tbody td {
- font-size: 11px;
- font-weight: bold;
- color: #666666;
- }
- /* erste Spalte (odd) -> #LOG: */
- table td:nth-child(odd) {
- width: 80pt;
- }
- /* zweite Spalte (even) */
- table td:nth-child(even) {
- font-weight: normal;
- }
- /* Sonderklasse "header" */
- table.header tbody {
- background: #CFCFCF;
- }
- table.header thead {
- background: #FFFFFF;
- }
- .header tbody td{
- width: auto;
- }
- /* doppelte deklaration notwenig, ich versteh nur nicht warum ... */ }
- table.header tbody {
- background: #CFCFCF;
- }
- .header tbody {
- background: #CFCFCF;
- display: block;
- }
- /* Überschriften */
- h1 {
- font-size: 15pt;
- font-weight: bold;
- color:#666666;
- padding-left: 4px;
- margin: 0;
- }
- h2 {
- font-size: 10pt;
- color: #666666;
- border-bottom: 1px solid #CCCCCC;
- margin-top: 15px;
- }
- div.block {
- height: 20px;
- width: 20px;
- background-color: {{ color }};
- display: inline-block;
- }
- </style>
- </head>
- <body>
- <table class="header">
- <thead>
- <tr>
- <th>
- <h1>
- <div class="block"> </div>
- {{ ansible_distribution}} Update Message
- </h1>
- </th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>[U] {{ ansible_distribution}} Update Message # Installed updates on host {{ ansible_hostname }}</td>
- </tr>
- <tr>
- <td>{{ ansible_date_time.iso8601 }}</td>
- <td>{{ ansible_fqdn }}</td>
- </tr>
- </tbody>
- </table>
- <h2>Server Übersicht</h2>
- <table>
- <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>Upgrade (Paketaktualisierung) durchführen</h2>
- <table>
- <thead>
- <tr>
- <th colspan="2">apt update && apt upgrade</th>
- </tr>
- </thead>
- <tbody>
- {% for line in apt_upgrade.stdout_lines %}
- <tr>
- <td># LOG:</td>
- <td>{{ line }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </tr>
- </table>
- <h2>Veraltete heruntergeladene Archive löschen</h2>
- <table>
- <thead>
- <tr>
- <th colspan="2">apt autoclean</th>
- </tr>
- </thead>
- <tbody>
- {% for line in apt_autoclean.stdout_lines %}
- <tr>
- <td># LOG:</td>
- <td>{{ line }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </tr>
- </table>
- <h2>Prüfen laufender Prozesse</h2>
- <table>
- <thead>
- <tr>
- <th colspan="2">lsof +L1 -R</th>
- </tr>
- </thead>
- <tbody>
- {% for line in lsof.stdout_lines %}
- <tr>
- <td># LOG:</td>
- <td>{{ line }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </tr>
- </table>
- </body>
|