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 1006B

123456789101112131415161718192021222324252627282930313233
  1. - name: Add monitoring vhost to apache
  2. copy: src=etc_apache2_sites-available_00-status.conf dest=/etc/apache2/sites-available/00-status.conf
  3. - name: Enable the status vhost
  4. command: a2ensite 00-status.conf creates=/etc/apache2/sites-enabled/00-status.conf
  5. notify: restart apache
  6. - name: Install monit
  7. apt: pkg=monit state=installed
  8. - name: Copy monit master config file into place
  9. copy: src=etc_monit_monitrc dest=/etc/monit/monitrc
  10. notify: restart monit
  11. - name: Copy monit service config files into place
  12. copy: src=etc_monit_conf.d_{{ item }} dest=/etc/monit/conf.d/{{ item }}
  13. with_items:
  14. - apache2
  15. - dovecot
  16. - pgsql
  17. - postfix
  18. - sshd
  19. - tomcat
  20. notify: restart monit
  21. - name: Determine if ZNC is installed
  22. stat: path=/var/lib/znc/configs/znc.conf
  23. register: znc_config_file
  24. - name: Copy ZNC monit service config files into place
  25. copy: src=etc_monit_conf.d_znc dest=/etc/monit/conf.d/znc
  26. notify: restart monit
  27. when: znc_config_file.stat.exists == True