mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Another big round of refactoring and cleaning...
This commit is contained in:
7
roles/sys-hlth-msmtp/templates/sys-hlth-msmtp.service.j2
Normal file
7
roles/sys-hlth-msmtp/templates/sys-hlth-msmtp.service.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Check msmtp liveliness
|
||||
OnFailure=sys-alm-telegram.cymais@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/bash {{ health_msmtp_folder }}sys-hlth-msmtp.sh
|
4
roles/sys-hlth-msmtp/templates/sys-hlth-msmtp.sh.j2
Normal file
4
roles/sys-hlth-msmtp/templates/sys-hlth-msmtp.sh.j2
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
echo "Subject: $HOST is alive
|
||||
|
||||
Host $HOSTNAME reports at $(date): I'm alive." | msmtp -t {{ users.administrator.email }}
|
Reference in New Issue
Block a user