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 %}