mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
25 lines
458 B
YAML
25 lines
458 B
YAML
---
|
|
- 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: Create fullBackup.sh
|
|
copy:
|
|
src: checkBackupStatus.sh
|
|
dest: /usr/local/bin/checkBackupStatus.sh
|
|
mode: 0700
|
|
|
|
- name: Copy monit config
|
|
template:
|
|
src: monitrc
|
|
dest: /etc/monit/monitrc
|
|
mode: 0600
|
|
notify: reload monit
|