Include role to deplay certificate for mail
This commit is contained in:
parent
93ee736c80
commit
60a83ad9a3
2 changed files with 8 additions and 2 deletions
|
@ -13,3 +13,9 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Deploy letsencrypt certificate
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: deploy_certificate
|
||||||
|
vars:
|
||||||
|
domain: mail.{{ mail_domain }}
|
||||||
|
|
|
@ -11,8 +11,8 @@ readme_directory = no
|
||||||
compatibility_level = 2
|
compatibility_level = 2
|
||||||
|
|
||||||
# TLS parameters
|
# TLS parameters
|
||||||
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
|
smtpd_tls_cert_file=/etc/letsencrypt/live/mail.{{ mail_domain }}/fullchain.pem
|
||||||
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
|
smtpd_tls_key_file=/etc/letsencrypt/live/mail.{{ mail_domain }}/privkey.pem
|
||||||
smtpd_tls_security_level=may
|
smtpd_tls_security_level=may
|
||||||
|
|
||||||
smtp_tls_CApath=/etc/ssl/certs
|
smtp_tls_CApath=/etc/ssl/certs
|
||||||
|
|
Loading…
Reference in a new issue