msmtp(role): introduce msmtp role
Introduce msmtp role for setting up msmtp for mail sending. Also add accompanying host group and playbook play.
This commit is contained in:
parent
18dda95c46
commit
afceb886dc
6 changed files with 83 additions and 0 deletions
17
roles/msmtp/templates/msmtprc.j2
Normal file
17
roles/msmtp/templates/msmtprc.j2
Normal file
|
@ -0,0 +1,17 @@
|
|||
# ansible-managed
|
||||
|
||||
# defaults
|
||||
defaults
|
||||
auth on
|
||||
tls on
|
||||
|
||||
# ansible-managed-account
|
||||
account ansible-managed-account
|
||||
host {{ msmtp__smtp_host }}
|
||||
port {{ msmtp__smtp_port }}
|
||||
tls_starttls {% if msmtp__smtp_tls_method == "starttls" %}on{% else %}off{% endif +%}
|
||||
user {{ msmtp__smtp_user }}
|
||||
password {{ msmtp__smtp_password }}
|
||||
from {{ msmtp__smtp_from }}
|
||||
|
||||
account default: ansible-managed-account
|
Loading…
Add table
Add a link
Reference in a new issue