소스 검색

install Dovecot from wheezy-backports on wheezy, specifying default_release

Alex Payne 9 년 전
부모
커밋
5222776e34
1개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  1. 13
    1
      roles/mailserver/tasks/dovecot.yml

+ 13
- 1
roles/mailserver/tasks/dovecot.yml 파일 보기

@@ -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

Loading…
취소
저장