added a test mail recipient

This commit is contained in:
chriswayg 2019-08-06 17:37:24 +08:00
parent eb749279d8
commit 617fcc0975
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
---
# send test mail to admin
# sending test mail using 'mail' command to root and test recipient
- name: test mail
shell: echo -e "Test mail from new/updated mSTMP\n\n $(uname -a)" | mail -s "Test mSMTP at $(hostname -f)" root
shell: echo "Test mail from new/updated mSTMP\n\n $(uname -a)" | mail -s "Test mSMTP at $(hostname -f)" root "{{ msmtp_test_mail_recipient }}"
tags: mail
when: msmtp_send_test_mail
async: 30