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

26 lines
458 B
YAML
Raw Normal View History

2018-01-02 05:03:19 +01:00
---
- name: Install monit
2019-11-05 05:08:28 +01:00
package:
name: monit
state: present
update_cache: yes
2018-01-02 05:03:19 +01:00
- name: Enable and start monit service
systemd:
name: monit.service
state: started
enabled: True
2019-11-05 05:08:28 +01:00
- name: Create fullBackup.sh
copy:
src: checkBackupStatus.sh
dest: /usr/local/bin/checkBackupStatus.sh
mode: 0700
2019-11-05 05:08:28 +01:00
2018-01-02 05:03:19 +01:00
- name: Copy monit config
template:
src: monitrc
dest: /etc/monit/monitrc
mode: 0600
2019-11-05 05:08:28 +01:00
notify: reload monit