From 617fcc09753fd0ef4eb1fe9475b431724481e34b Mon Sep 17 00:00:00 2001 From: chriswayg Date: Tue, 6 Aug 2019 17:37:24 +0800 Subject: [PATCH] added a test mail recipient --- handlers/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index e2c43b0..b1a03a6 100755 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -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