Browse Source

Merge pull request #2 from neuhaus/patch-1

Add Ubuntu compatibility to wheezy-backports patch
Mike Ashley 10 years ago
parent
commit
963b257edf
1 changed files with 16 additions and 6 deletions
  1. 16
    6
      roles/webmail/tasks/roundcube.yml

+ 16
- 6
roles/webmail/tasks/roundcube.yml View File

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

Loading…
Cancel
Save