Browse Source

Cleanup monitoring task and add status page on localhost also with ssl

Thomas Buck 5 years ago
parent
commit
0583b7e64e

+ 8
- 0
roles/monitoring/files/etc_apache2_sites-available_00-status.conf View File

@@ -6,3 +6,11 @@
6 6
     Require ip 127.0.0.1
7 7
   </Location>
8 8
 </VirtualHost>
9
+
10
+<VirtualHost *:443>
11
+  SSLEngine On
12
+  <Location />
13
+    SetHandler server-status
14
+    Require ip 127.0.0.1
15
+  </Location>
16
+</VirtualHost>

+ 5
- 2
roles/monitoring/tasks/logwatch.yml View File

@@ -1,6 +1,9 @@
1 1
 - name: Install logwatch
2
-  apt: pkg={{ item }} state=present
3
-  with_items:
2
+  apt:
3
+    name: "{{ packages }}"
4
+    state: present
5
+  vars:
6
+    packages:
4 7
     - libdate-manip-perl
5 8
     - logwatch
6 9
   tags:

+ 3
- 1
roles/monitoring/tasks/monit.yml View File

@@ -6,7 +6,9 @@
6 6
   notify: restart apache
7 7
 
8 8
 - name: Install monit
9
-  apt: pkg=monit state=present
9
+  apt:
10
+    name: monit
11
+    state: present
10 12
   tags:
11 13
     - dependencies
12 14
 

Loading…
Cancel
Save