Explorar el Código

use wheezy-backports for dspam and solr packages on wheezy

relates to pull request #372
Sven Neuhaus hace 9 años
padre
commit
8b5ed21e38
Se han modificado 2 ficheros con 20 adiciones y 2 borrados
  1. 11
    1
      roles/mailserver/tasks/dspam.yml
  2. 9
    1
      roles/mailserver/tasks/solr.yml

+ 11
- 1
roles/mailserver/tasks/dspam.yml Ver fichero

@@ -1,10 +1,20 @@
1
-- name: Install dspam and related packages
1
+- name: Install dspam and related packages on wheezy
2
+  apt: pkg={{ item }} state=installed default_release=wheezy-backports
3
+  with_items:
4
+    - dovecot-antispam
5
+    - dovecot-sieve
6
+    - dspam
7
+    - postfix-pcre
8
+  when: ansible_distribution_release == 'wheezy'
9
+
10
+- name: Install dspam and related packages on distributions other than wheezy
2 11
   apt: pkg={{ item }} state=installed
3 12
   with_items:
4 13
     - dovecot-antispam
5 14
     - dovecot-sieve
6 15
     - dspam
7 16
     - postfix-pcre
17
+  when: ansible_distribution_release != 'wheezy'
8 18
 
9 19
 - name: Create dspam directory
10 20
   file: state=directory path=/decrypted/dspam group=dspam owner=dspam

+ 9
- 1
roles/mailserver/tasks/solr.yml Ver fichero

@@ -1,8 +1,16 @@
1
-- name: Install Solr and related packages
1
+- name: Install Solr and related packages on wheezy from backports
2
+  apt: pkg={{ item }} state=installed default_release=wheezy-backports
3
+  with_items:
4
+    - dovecot-solr
5
+    - solr-tomcat
6
+  when: ansible_distribution_release == 'wheezy'
7
+
8
+- name: Install Solr and related packages on distributions other than wheezy
2 9
   apt: pkg={{ item }} state=installed
3 10
   with_items:
4 11
     - dovecot-solr
5 12
     - solr-tomcat
13
+  when: ansible_distribution_release != 'wheezy'
6 14
 
7 15
 - name: Work around Debian bug and copy Solr schema file into place
8 16
   copy: src=solr-schema.xml dest=/etc/solr/conf/schema.xml group=root owner=root

Loading…
Cancelar
Guardar