fix: Dovecot in Debian Trixie => 2.4 has add / deprecated configurations
All checks were successful
Molecule Tests / molecule-tests (pull_request) Successful in 7m18s

This commit is contained in:
2026-03-11 12:40:37 -03:00
parent 1300e7acc6
commit d61a4ddcef
9 changed files with 72 additions and 3 deletions

View File

@@ -1,7 +1,13 @@
# Dovecot mail location configuration
# Ansible managed: {{ ansible_managed }}
{% if dovecot_major_version is defined and dovecot_major_version is version('2.4', '>=') %}
{% set _driver = dovecot_mail_location.split(':')[0] %}
{% set _path = dovecot_mail_location.split(':')[1] %}
mail_driver = {{ _driver }}
mail_path = {{ _path }}
{% else %}
mail_location = {{ dovecot_mail_location }}
{% endif %}
namespace inbox {
inbox = yes