Fix interface name in Monit's config

This commit is contained in:
Paul-Henri Froidmont 2019-11-05 05:08:28 +01:00
parent 77cf4d9c90
commit ae2e2b8ed3
2 changed files with 9 additions and 4 deletions

View file

@ -1,20 +1,25 @@
---
- name: Install monit
package: name=monit state=present update_cache=yes
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
notify: reload monit