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
|
|
|
|
2018-02-13 12:10:02 +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
|
2018-10-11 04:17:57 +02:00
|
|
|
dest: /etc/monit/monitrc
|
|
|
|
|
mode: 0600
|
2019-11-05 05:08:28 +01:00
|
|
|
notify: reload monit
|