ansible-edda/playbooks/roles/system/zfs/templates/scrub/systemd-mail-zpool-status

12 lines
237 B
Bash

#!/bin/sh
/usr/sbin/sendmail -t <<SYSTEMDMAIL
To: root
From: systemd <systemd>
Subject: zpool status $1 on {{ ansible_hostname }}
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
$(zpool status "$1")
SYSTEMDMAIL