mail_body.j2 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title></title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
  6. <meta name="viewport" content="width=600" />
  7. <style>
  8. table.blueTable {
  9. border: 1px solid #CCCCCC;
  10. width: 100%;
  11. text-align: left;
  12. }
  13. table.blueTable td, table.blueTable th {
  14. # padding: 3px 3px;
  15. }
  16. table.blueTable tbody td {
  17. font-size: 13px;
  18. font-weight: bold;
  19. color: #666666;
  20. }
  21. table.blueTable td:nth-child(even) {
  22. font-weight: normal;
  23. }
  24. table.blueTable thead {
  25. background: #CFCFCF;
  26. border-bottom: 2px solid #444444;
  27. }
  28. table.blueTable thead th {
  29. font-weight: bold;
  30. color: #003399;
  31. }
  32. table.blueTable tfoot td {
  33. font-size: 14px;
  34. }
  35. table.blueTable tfoot .links {
  36. text-align: right;
  37. }
  38. table.blueTable tfoot .links a{
  39. display: inline-block;
  40. background: #1C6EA4;
  41. color: #FFFFFF;
  42. padding: 2px 8px;
  43. border-radius: 5px;
  44. }
  45. h2 {
  46. font-size: 10pt;
  47. color: #666666;
  48. border-bottom: 1px solid #CCCCCC;
  49. margin-top: 15px;
  50. }
  51. </style>
  52. </head>
  53. <body>
  54. <h2>Server &Uuml;bersicht</h2>
  55. <table class="blueTable">
  56. <thead>
  57. <tr>
  58. <th colspan="2">Host Informationen</th>
  59. </tr>
  60. </thead>
  61. <tbody>
  62. <tr>
  63. <td># Distribution:</td>
  64. <td>{{ ansible_distribution}} {{ansible_distribution_version}} ({{ ansible_distribution_release }})</td>
  65. </tr>
  66. <tr>
  67. <td># Vendor:</td>
  68. <td>{{ ansible_system_vendor }}</td>
  69. </tr>
  70. <tr>
  71. <td># FQDN:</td>
  72. <td>{{ ansible_fqdn }}</td>
  73. </tr>
  74. <tr>
  75. <td># Product:</td>
  76. <td>{{ ansible_product_name }}</td>
  77. </tr>
  78. <tr>
  79. <td># IP-Adressen:</td>
  80. <td>{{ ansible_eth0.ipv4.address }} ({{ ansible_eth0.device }})</td>
  81. </tr>
  82. </tbody>
  83. </tr>
  84. </table>
  85. <h2>neue Paketinformationen holen </h2>
  86. <table class="blueTable">
  87. <thead>
  88. <tr>
  89. <th colspan="2">apt-get update</th>
  90. </tr>
  91. </thead>
  92. <tbody>
  93. {% for line in apt_update.stdout_lines %}
  94. <tr>
  95. <td># LOG:</td>
  96. <td>{{ line }}</td>
  97. </tr>
  98. {% endfor %}
  99. </tbody>
  100. </tr>
  101. </table>
  102. </body>