mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Add monit and a few utility scripts
This commit is contained in:
parent
b09ac86a62
commit
830f6a5609
12 changed files with 537 additions and 14 deletions
14
roles/monit/tasks/main.yml
Normal file
14
roles/monit/tasks/main.yml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue