[nullmailer] Define allmailfrom to always send mails as root

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-02-18 11:25:02 +01:00
parent 601a52132e
commit ae163d6bc9
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 7 additions and 0 deletions

View File

@ -3,3 +3,4 @@ glob_nullmailer:
root: root@crans.org
smtp_server: smtp.adm.crans.org
defaulthost: crans.org
allmailfrom: root@crans.org

View File

@ -26,3 +26,9 @@
content: "{{ nullmailer.defaulthost }}\n"
dest: /etc/nullmailer/defaulthost
mode: 0644
- name: Set nullmailer allmailfrom
copy:
content: "{{ nullmailer.allmailfrom }}\n"
dest: /etc/nullmailer/allmailfrom
mode: 0644