From e27747426bf6923a07248869e3e53b77b02bc852 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 19 Dec 2019 11:21:16 +0100 Subject: [PATCH] Set the compatibility level on Ubuntu 18.04. --- library/roles/postfix/templates/main.cf.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/roles/postfix/templates/main.cf.j2 b/library/roles/postfix/templates/main.cf.j2 index fd72c28e..4501ebb1 100644 --- a/library/roles/postfix/templates/main.cf.j2 +++ b/library/roles/postfix/templates/main.cf.j2 @@ -766,4 +766,8 @@ smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache # Client smtp_tls_security_level = {{ postfix_smtp_tls_security_level }} smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache - +{% if ansible_distribution_file_variety == "Debian" %} +{% if ansible_distribution_version is version_compare('18.04', '>=') %} +compatibility_level=2 +{% endif %} +{% endif %}