split tasks per distribution, add msmtp

This commit is contained in:
2022-01-06 13:48:02 +01:00
parent 57e5333dc5
commit 042be1c6ea
10 changed files with 155 additions and 48 deletions

2
templates/aliases.j2 Normal file
View File

@ -0,0 +1,2 @@
root: {{ mailto }}
default: {{ mailto }}

11
templates/msmtprc.j2 Normal file
View File

@ -0,0 +1,11 @@
defaults
syslog on
set_from_header on
aliases /etc/aliases
account {{ inventory_hostname_short }}
host {{ mailrelay }}
from {{ inventory_hostname_short }}@br0tkasten.de
port {{ mailport }}
account default : {{ inventory_hostname_short }}