Pārlūkot izejas kodu

install Dovecot from wheezy-backports on wheezy. resolves #372

Alex Payne 10 gadus atpakaļ
vecāks
revīzija
c3afbc3b46
1 mainītis faili ar 11 papildinājumiem un 9 dzēšanām
  1. 11
    9
      roles/mailserver/tasks/dovecot.yml

+ 11
- 9
roles/mailserver/tasks/dovecot.yml Parādīt failu

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
   with_items:
7
   with_items:
4
     - dovecot-core
8
     - dovecot-core
5
     - dovecot-imapd
9
     - dovecot-imapd
7
     - dovecot-managesieved
11
     - dovecot-managesieved
8
     - dovecot-pgsql
12
     - dovecot-pgsql
9
     - dovecot-pop3d
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
     - postgresql-9.1
18
     - postgresql-9.1
11
   when: ansible_distribution_release != 'trusty'
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
   apt: pkg={{ item }} state=installed
22
   apt: pkg={{ item }} state=installed
15
   with_items:
23
   with_items:
16
-    - dovecot-core
17
-    - dovecot-imapd
18
-    - dovecot-lmtpd
19
-    - dovecot-managesieved
20
-    - dovecot-pgsql
21
-    - dovecot-pop3d
22
     - postgresql-9.3
24
     - postgresql-9.3
23
   when: ansible_distribution_release == 'trusty'
25
   when: ansible_distribution_release == 'trusty'
24
 
26
 

Notiek ielāde…
Atcelt
Saglabāt