Initial creation of monit-dashboard tasks/handler updates

This commit is contained in:
KemoNine 2020-08-09 01:25:32 -04:00
parent 31d98b5098
commit b80d1e54f5
2 changed files with 16 additions and 2 deletions

View file

@ -1,4 +1,3 @@
--- ---
- name: restart monit-dashboard (container) - name: restart monit-dashboard
command: /usr/bin/s6-svc -r /var/run/s6/services/monit-dashboard command: /usr/bin/s6-svc -r /var/run/s6/services/monit-dashboard
listen: "reconfigure monit-dashboard"

View file

@ -0,0 +1,15 @@
---
- name: Gather instance facts
setup:
- block:
- name: Setup monit-dashboard
template:
src: servers.json
dest: "/opt/monit-dashboard/conf/servers.json"
owner: root
group: root
mode: 0600
notify:
- restart monit-dashboard
tags:
- monit-dashboard-config