blob: 9d2c20e66a9240233e25607bb40013df1c51bd5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
- name: Install Dovecot and related packages
apt: pkg={{ item }} update_cache=yes state=installed
with_items:
- dovecot-core
- dovecot-imapd
- dovecot-lmtpd
- dovecot-antispam
tags:
- dependencies
#- name: Copy dovecot.conf into place
# copy: src=etc_dovecot_dovecot.conf dest=/etc/dovecot/dovecot.conf
#- name: Create before.d sieve scripts directory
# file: path=/etc/dovecot/sieve/before.d state=directory owner=vmail group=dovecot recurse=yes mode=0770
# notify: restart dovecot
#- name: Configure sieve script moving spam into Junk folder
# copy: src=etc_dovecot_sieve_before.d_no-spam.sieve dest=/etc/dovecot/sieve/before.d/no-spam.sieve owner=vmail group=dovecot
# notify: restart dovecot
#- name: Copy additional Dovecot configuration files in place
# copy: src=etc_dovecot_conf.d_{{ item }} dest=/etc/dovecot/conf.d/{{ item }}
# with_items:
# - 10-auth.conf
# - 10-mail.conf
# - 10-master.conf
# - 90-antispam.conf
# - 90-plugin.conf
# - 90-sieve.conf
# notify: restart dovecot
#- name: Update post-certificate-renewal task
# copy:
# content: "#!/bin/bash\n\n/etc/init.d/dovecot restart\n"
# dest: /etc/letsencrypt/postrenew/dovecot.sh
# mode: 0755
# owner: root
# group: root
|