self-hosting/roles/monit/tasks/main.yml

15 lines
299 B
YAML
Raw Normal View History

2018-01-02 05:03:19 +01:00
---
- name: Install monit
package: name=monit state=present update_cache=yes
- name: Enable and start monit service
systemd:
name: monit.service
state: started
enabled: True
- name: Copy monit config
template:
src: monitrc
dest: /etc/monitrc
notify:
- reload monit