|
@@ -1,15 +1,25 @@
|
1
|
|
-- name: Add backports for Roundcube
|
|
1
|
+- name: Add backports for Roundcube on Debian
|
2
|
2
|
lineinfile: dest=/etc/apt/sources.list line="deb http://http.debian.net/debian wheezy-backports main"
|
3
|
|
-
|
|
3
|
+ when: ansible_distribution_release == 'wheezy'
|
|
4
|
+
|
4
|
5
|
- name: Update apt cache for backports
|
5
|
6
|
apt: update_cache=yes
|
6
|
7
|
|
7
|
|
-- name: Install Roundcube
|
|
8
|
+- name: Install Roundcube from wheezy-backports
|
8
|
9
|
apt: pkg={{ item }} state=latest default_release=wheezy-backports
|
9
|
10
|
with_items:
|
10
|
|
- - roundcube
|
11
|
|
- - roundcube-pgsql
|
12
|
|
- - roundcube-plugins
|
|
11
|
+ - roundcube
|
|
12
|
+ - roundcube-pgsql
|
|
13
|
+ - roundcube-plugins
|
|
14
|
+ when: ansible_distribution_release == 'wheezy'
|
|
15
|
+
|
|
16
|
+ - name: Install Roundcube on Ubuntu 14.04 LTS
|
|
17
|
+ apt: pkg={{ item }} state=latest
|
|
18
|
+ with_items:
|
|
19
|
+ - roundcube
|
|
20
|
+ - roundcube-pgsql
|
|
21
|
+ - roundcube-plugins
|
|
22
|
+ when: ansible_distribution_release == 'trusty'
|
13
|
23
|
|
14
|
24
|
- name: Configure Roundcube database
|
15
|
25
|
template: src={{ item.src }} dest={{ item.dest }} group={{ item.group }} mode={{ item.mode }} owner=root force=yes
|