Fix template file not being copied (matrix-notify script)

Signed-off-by: Leo Puvilland <leo@craftcat.dev>
This commit is contained in:
Leo Puvilland 2023-12-19 09:18:16 -08:00
parent a60db282a0
commit e04948b31a
No known key found for this signature in database
GPG key ID: 20EA96682F9368EB

View file

@ -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