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