Bläddra i källkod

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 10 år sedan
förälder
incheckning
2d2f8a53fb
2 ändrade filer med 5 tillägg och 1 borttagningar
  1. 4
    0
      roles/ircbouncer/tasks/znc.yml
  2. 1
    1
      roles/monitoring/tasks/monit.yml

+ 4
- 0
roles/ircbouncer/tasks/znc.yml Visa fil

63
 
63
 
64
 - name: Ensure znc is a system service
64
 - name: Ensure znc is a system service
65
   service: name=znc state=started enabled=true
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 Visa fil

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

Laddar…
Avbryt
Spara