Files
computer-playbook/roles/health-msmtp/templates/health-msmtp.sh.j2

4 lines
132 B
Django/Jinja

#!/bin/bash
echo "Subject: $HOST is alive
Host $HOSTNAME reports at $(date): I'm alive." | msmtp -t {{ users.administrator.email }}