Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

monit.yml 719B

1234567891011121314151617181920212223242526
  1. - name: Install monit
  2. apt: pkg=monit state=installed
  3. - name: Copy monit master config file into place
  4. copy: src=etc_monit_monitrc dest=/etc/monit/monitrc
  5. notify: restart monit
  6. - name: Copy monit service config files into place
  7. copy: src=etc_monit_conf.d_{{ item }} dest=/etc/monit/conf.d/{{ item }}
  8. with_items:
  9. - apache2
  10. - dovecot
  11. - pgsql
  12. - postfix
  13. - sshd
  14. - tomcat
  15. notify: restart monit
  16. - name: Determine if ZNC is installed
  17. stat: path=/var/lib/znc/configs/znc.conf
  18. register: znc_config_file
  19. - name: Copy ZNC monit service config files into place
  20. copy: src=etc_monit_conf.d_znc dest=/etc/monit/conf.d/znc
  21. notify: restart monit
  22. when: znc_config_file.stat.exists == True