Initial creation of monit-dashboard tasks/handler updates
This commit is contained in:
parent
31d98b5098
commit
b80d1e54f5
|
@ -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"
|
|
||||||
|
|
15
roles/monit-dashboard/tasks/main.yml
Normal file
15
roles/monit-dashboard/tasks/main.yml
Normal 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
|
Loading…
Reference in a new issue