Templatize more variables
This commit is contained in:
parent
8844cf5a87
commit
7f0ea55dc6
|
@ -2,6 +2,11 @@
|
||||||
msmtp_version: 1.8.24-1
|
msmtp_version: 1.8.24-1
|
||||||
msmtp_rpm_file: https://git.garbaye.fr/api/packages/Garbaye/generic/msmtp/{{ msmtp_version}}/msmtp-{{ msmtp_version}}.el8.{{ ansible_architecture }}.rpm
|
msmtp_rpm_file: https://git.garbaye.fr/api/packages/Garbaye/generic/msmtp/{{ msmtp_version}}/msmtp-{{ msmtp_version}}.el8.{{ ansible_architecture }}.rpm
|
||||||
|
|
||||||
|
# msmtprc configuration
|
||||||
|
msmtp_auth: on
|
||||||
|
msmtp_tls: on
|
||||||
|
msmtp_tls_starttls: on
|
||||||
|
|
||||||
msmtp_accounts:
|
msmtp_accounts:
|
||||||
# Account 1 - it was a real account for testing (but yandex now blocks it)
|
# Account 1 - it was a real account for testing (but yandex now blocks it)
|
||||||
# Uses Yandex app password limited to POP3, SMTP and IMAP
|
# Uses Yandex app password limited to POP3, SMTP and IMAP
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
# Default settings that all others accounts inherit
|
# Default settings that all others accounts inherit
|
||||||
defaults
|
defaults
|
||||||
auth on
|
auth {{msmtp_auth}}
|
||||||
tls on
|
tls {{msmtp_tls}}
|
||||||
tls_starttls on
|
tls_starttls {{msmtp_tls_starttls}}
|
||||||
{% if msmtp_tls_trust_file is defined %}
|
{% if msmtp_tls_trust_file is defined %}
|
||||||
tls_trust_file {{msmtp_tls_trust_file}}
|
tls_trust_file {{msmtp_tls_trust_file}}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in a new issue