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
21
roles/msmtp/README.md
Normal file
21
roles/msmtp/README.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Role `msmtp`
|
||||
|
||||
A role for setting up msmtp for mail sending.
|
||||
|
||||
The role only supports mail servers supporting either STARTTLS or SMTPS.
|
||||
|
||||
## Supported Distributions
|
||||
|
||||
Should work on Debian-based distributions.
|
||||
|
||||
## Required Arguments
|
||||
|
||||
- `msmtp__smtp_host`: The SMTP host to use.
|
||||
- `msmtp__smtp_port`: The SMTP port to use.
|
||||
- `msmtp__smtp_tls_method`: The SMTP TLS method to use.
|
||||
Possible choices:
|
||||
- `starttls`: Use STARTTLS to connect to the server.
|
||||
- `smtps`: Use SMTPS to connect to the server.
|
||||
- `msmtp__smtp_user`: The SMTP user to use for authentication.
|
||||
- `msmtp__smtp_password`: The SMTP password to use for authentication.
|
||||
- `msmtp__smtp_from`: The SMTP from address to use when sending mails.
|
Loading…
Add table
Add a link
Reference in a new issue