Browse Source

Only monitor ZNC with monit if role is used.

The other services monitored by the default monit task should always be present except in very custom setups.

Resolves #255.
Alex Payne 9 years ago
parent
commit
2d2f8a53fb
2 changed files with 5 additions and 1 deletions
  1. 4
    0
      roles/ircbouncer/tasks/znc.yml
  2. 1
    1
      roles/monitoring/tasks/monit.yml

+ 4
- 0
roles/ircbouncer/tasks/znc.yml View File

@@ -63,3 +63,7 @@
63 63
 
64 64
 - name: Ensure znc is a system service
65 65
   service: name=znc state=started enabled=true
66
+
67
+- name: Copy monit service config files into place
68
+  copy: src=etc_monit_conf.d_znc dest=/etc/monit/conf.d/znc
69
+  notify: restart monit

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

@@ -3,6 +3,7 @@
3 3
 
4 4
 - name: Copy monit master config file into place
5 5
   copy: src=etc_monit_monitrc dest=/etc/monit/monitrc
6
+  notify: restart monit
6 7
 
7 8
 - name: Copy monit service config files into place
8 9
   copy: src=etc_monit_conf.d_{{ item }} dest=/etc/monit/conf.d/{{ item }}
@@ -13,5 +14,4 @@
13 14
     - postfix
14 15
     - sshd
15 16
     - tomcat
16
-    - znc
17 17
   notify: restart monit

Loading…
Cancel
Save