diff --git a/roles/monit-dashboard/handlers/main.yml b/roles/monit-dashboard/handlers/main.yml index 1f09a6b..b802858 100644 --- a/roles/monit-dashboard/handlers/main.yml +++ b/roles/monit-dashboard/handlers/main.yml @@ -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 - listen: "reconfigure monit-dashboard" diff --git a/roles/monit-dashboard/tasks/main.yml b/roles/monit-dashboard/tasks/main.yml new file mode 100644 index 0000000..d14a725 --- /dev/null +++ b/roles/monit-dashboard/tasks/main.yml @@ -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