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