Przeglądaj źródła

install Dovecot from wheezy-backports on wheezy, specifying default_release

Alex Payne 9 lat temu
rodzic
commit
5222776e34
1 zmienionych plików z 13 dodań i 1 usunięć
  1. 13
    1
      roles/mailserver/tasks/dovecot.yml

+ 13
- 1
roles/mailserver/tasks/dovecot.yml Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz