From e04948b31a92a794623e085db9c4a0cae715efe6 Mon Sep 17 00:00:00 2001 From: Leo Puvilland Date: Tue, 19 Dec 2023 09:18:16 -0800 Subject: [PATCH] Fix template file not being copied (matrix-notify script) Signed-off-by: Leo Puvilland --- roles/nagios_server/tasks/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/roles/nagios_server/tasks/main.yml b/roles/nagios_server/tasks/main.yml index 8af3421e36..d6e8ea6a2d 100644 --- a/roles/nagios_server/tasks/main.yml +++ b/roles/nagios_server/tasks/main.yml @@ -153,12 +153,6 @@ - nagios_server notify: restart nagios -- name: Copy Matrix-Notify script - copy: src=scripts/matrix-notify.sh dest=/usr/local/bin/matrix-notify.sh mode=0700 owner=root group=root - tags: - - nagios_config - - nagios_server - ## Copy over the contacts - name: Copy /etc/nagios/contacts synchronize: src=nagios/contacts/ dest=/etc/nagios/contacts/ @@ -449,6 +443,13 @@ - nagios_hosts notify: restart nagios +- name: Copy Matrix-Notify script + template: src=scripts/matrix-notify.sh.j2 dest=/usr/local/bin/matrix-notify.sh mode=0700 owner=root group=root + tags: + - nagios_config + - nagios_server + + ## These are only available to the internal server - name: Build out nagios host templates (production) template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root