feat: add support for Dovecot deployment on Fedora 43 and 44 with systemd unit files and configuration templates

This commit is contained in:
2026-08-03 22:24:44 -05:00
parent cbd79156f1
commit 656022a2ee
19 changed files with 541 additions and 0 deletions
@@ -96,3 +96,5 @@ template_list:
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/usr/lib/systemd/system/dovecot-copytls.service'
- dest: '/usr/lib/systemd/system/dovecot-copytls.timer'
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/usr/lib/systemd/system/dovecot-copytls.timer'
...
@@ -0,0 +1,44 @@
---
# vars file for ensure_dovecot
package_list:
- name: 'dovecot'
state: 'present'
- name: 'dovecot-fts-xapian'
state: 'present'
- name: 'dovecot-mysql'
state: 'present'
- name: 'dovecot-pigeonhole'
state: 'present'
firewall_list:
- permanent: 'yes'
service: 'imap'
state: 'enabled'
- permanent: 'yes'
service: 'imaps'
state: 'enabled'
service_list:
- enabled: 'yes'
name: 'dovecot.service'
state: 'started'
- enabled: 'yes'
name: 'dovecot-copytls.service'
state: 'started'
- enabled: 'yes'
name: 'dovecot-copytls.timer'
state: 'started'
template_list:
- dest: '/etc/dovecot/dovecot.conf'
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/dovecot/dovecot.conf'
- dest: '/etc/dovecot/conf.d/local.conf'
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/dovecot/conf.d/local.conf'
- dest: '/etc/dovecot/accounts'
group: 'dovecot'
mode: '0600'
owner: 'dovecot'
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/dovecot/accounts'
- dest: '/usr/lib/systemd/system/dovecot-copytls.service'
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/usr/lib/systemd/system/dovecot-copytls.service'
- dest: '/usr/lib/systemd/system/dovecot-copytls.timer'
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/usr/lib/systemd/system/dovecot-copytls.timer'
...
@@ -0,0 +1,43 @@
---
# vars file for ensure_dovecot
package_list:
- name: 'dovecot'
state: 'present'
- name: 'dovecot-fts-xapian'
state: 'present'
- name: 'dovecot-mysql'
state: 'present'
- name: 'dovecot-pigeonhole'
state: 'present'
firewall_list:
- permanent: 'yes'
service: 'imap'
state: 'enabled'
- permanent: 'yes'
service: 'imaps'
state: 'enabled'
service_list:
- enabled: 'yes'
name: 'dovecot.service'
state: 'started'
- enabled: 'yes'
name: 'dovecot-copytls.service'
state: 'started'
- enabled: 'yes'
name: 'dovecot-copytls.timer'
state: 'started'
template_list:
- dest: '/etc/dovecot/dovecot.conf'
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/dovecot/dovecot.conf'
- dest: '/etc/dovecot/conf.d/local.conf'
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/dovecot/conf.d/local.conf'
- dest: '/etc/dovecot/accounts'
group: 'dovecot'
mode: '0600'
owner: 'dovecot'
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/dovecot/accounts'
- dest: '/usr/lib/systemd/system/dovecot-copytls.service'
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/usr/lib/systemd/system/dovecot-copytls.service'
- dest: '/usr/lib/systemd/system/dovecot-copytls.timer'
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/usr/lib/systemd/system/dovecot-copytls.timer'
...