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
     Require ip 127.0.0.1
6
     Require ip 127.0.0.1
7
   </Location>
7
   </Location>
8
 </VirtualHost>
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
 - name: Install logwatch
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
     - libdate-manip-perl
7
     - libdate-manip-perl
5
     - logwatch
8
     - logwatch
6
   tags:
9
   tags:

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

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

Loading…
Cancel
Save