ansible/roles/monit-dashboard/main.yml

17 lines
402 B
YAML

---
- 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
with_items: "{{ groups['frames'] }}"
notify:
- restart monit-dashboard
tags:
- monit-dashboard-config