|
@@ -1,5 +1,9 @@
|
1
|
|
-- name: Install Dovecot and related packages for distributions other than Ubuntu Trusty
|
2
|
|
- apt: pkg={{ item }} state=installed
|
|
1
|
+- name: Add wheezy-backports to get a reasonably current Dovecot on Debian 7
|
|
2
|
+ apt_repository: repo='deb http://http.debian.net/debian wheezy-backports main'
|
|
3
|
+ when: ansible_distribution_release == 'wheezy'
|
|
4
|
+
|
|
5
|
+- name: Install Dovecot and related packages
|
|
6
|
+ apt: pkg={{ item }} update_cache=yes state=installed
|
3
|
7
|
with_items:
|
4
|
8
|
- dovecot-core
|
5
|
9
|
- dovecot-imapd
|
|
@@ -7,18 +11,16 @@
|
7
|
11
|
- dovecot-managesieved
|
8
|
12
|
- dovecot-pgsql
|
9
|
13
|
- dovecot-pop3d
|
|
14
|
+
|
|
15
|
+- name: Install Dovecot Postgres dependency for distributions other than Ubuntu Trusty
|
|
16
|
+ apt: pkg={{ item }} state=installed
|
|
17
|
+ with_items:
|
10
|
18
|
- postgresql-9.1
|
11
|
19
|
when: ansible_distribution_release != 'trusty'
|
12
|
20
|
|
13
|
|
-- name: Install Dovecot and related packages for Ubuntu trusty
|
|
21
|
+- name: Install Dovecot Postgres dependency for Ubuntu trusty
|
14
|
22
|
apt: pkg={{ item }} state=installed
|
15
|
23
|
with_items:
|
16
|
|
- - dovecot-core
|
17
|
|
- - dovecot-imapd
|
18
|
|
- - dovecot-lmtpd
|
19
|
|
- - dovecot-managesieved
|
20
|
|
- - dovecot-pgsql
|
21
|
|
- - dovecot-pop3d
|
22
|
24
|
- postgresql-9.3
|
23
|
25
|
when: ansible_distribution_release == 'trusty'
|
24
|
26
|
|