From b80d1e54f5ef4dbccd599cddb6bad7b0ce0e1f4a Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sun, 9 Aug 2020 01:25:32 -0400 Subject: [PATCH] Initial creation of monit-dashboard tasks/handler updates --- roles/monit-dashboard/handlers/main.yml | 3 +-- roles/monit-dashboard/tasks/main.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 roles/monit-dashboard/tasks/main.yml 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