summaryrefslogtreecommitdiffstats
path: root/roles/webmail
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-06-25 06:17:45 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:51:52 +0200
commit2c6875911b26fefd9bd11bd71eecda69e0cf32aa (patch)
tree7957054ca12ac5378ca7756356816409c1664d36 /roles/webmail
parenta4d0e4a7f8cd829de8346fb6edd9866cc855134f (diff)
Install Rouncube from backports.
Recent versions have a whole bunch of bugfixes and nice new features: http://trac.roundcube.net/wiki/Changelog
Diffstat (limited to 'roles/webmail')
-rw-r--r--roles/webmail/files/var/lib/roundcube/skins/logo_webmail.png (renamed from roles/webmail/files/var/lib/roundcube/skins/default/images/logo_webmail.png)bin6567 -> 6567 bytes
-rw-r--r--roles/webmail/tasks/roundcube.yml40
2 files changed, 25 insertions, 15 deletions
diff --git a/roles/webmail/files/var/lib/roundcube/skins/default/images/logo_webmail.png b/roles/webmail/files/var/lib/roundcube/skins/logo_webmail.png
index 7af586a..7af586a 100644
--- a/roles/webmail/files/var/lib/roundcube/skins/default/images/logo_webmail.png
+++ b/roles/webmail/files/var/lib/roundcube/skins/logo_webmail.png
Binary files differ
diff --git a/roles/webmail/tasks/roundcube.yml b/roles/webmail/tasks/roundcube.yml
index 477943f..4699bdc 100644
--- a/roles/webmail/tasks/roundcube.yml
+++ b/roles/webmail/tasks/roundcube.yml
@@ -1,15 +1,21 @@
-- name: Install Roundcube
+- name: Install PHP
apt: pkg={{ item }}
with_items:
+ - php5-fpm
+ - php5-ldap
+ - php5-gd
+ - php5-pspell
+
+- name: Install Roundcube
+ apt: pkg={{ item }} default_release={{ ansible_lsb.codename }}-backports
+ with_items:
- roundcube-core
- roundcube-mysql
- roundcube-plugins
- - php5-fpm
- - php5-ldap
- name: Copy fripost's logo
- copy: src=var/lib/roundcube/skins/default/images/logo_webmail.png
- dest=/var/lib/roundcube/skins/default/images/logo_webmail.png
+ copy: src=var/lib/roundcube/skins/logo_webmail.png
+ dest=/var/lib/roundcube/skins/logo_webmail.png
owner=root group=root
mode=0644
@@ -26,33 +32,37 @@
- { var: default_host, value: "'localhost'" }
- { var: imap_auth_type, value: "'plain'" }
- { var: imap_cache, value: "null" }
- - { var: message_cache, value: "null" }
+ - { var: messages_cache, value: "FALSE" }
# SMTP
- { var: smtp_server, value: "'localhost'" }
- { var: smtp_port, value: "2580" }
# System
- - { var: force_https, value: "TRUE" }
- - { var: login_autocomplete, value: "2" }
- - { var: skin_logo, value: "'skins/default/images/logo_webmail.png'" }
- - { var: username_domain, value: "'fripost.org'" }
- - { var: product_name, value: "'Fripost'" }
+ - { var: force_https, value: "TRUE" }
+ - { var: login_autocomplete, value: "2" }
+ - { var: skin_logo, value: "'skins/logo_webmail.png'" }
+ - { var: username_domain, value: "'fripost.org'" }
+ - { var: product_name, value: "'Fripost'" }
# Plugins
- { var: plugins, value: "array('additional_message_headers','managesieve','password')" }
# User Interface
- - { var: language, value: "'sv_SE'" }
- - { var: create_default_folders, value: "TRUE" }
+ - { var: skin, value: "'classic'" }
+ - { var: language, value: "'sv_SE'" }
+ - { var: create_default_folders, value: "TRUE" }
# User Preferences
- { var: htmleditor, value: "TRUE" }
- { var: skip_deleted, value: "TRUE" }
- { var: check_all_folders, value: "FALSE" }
- name: Make the logo a hyperlink to the website
- lineinfile: dest=/usr/share/roundcube/skins/default/templates/login.html
- regexp='^(<roundcube:object name="logo" src="/images/roundcube_logo.png" id="logo" border="0" style="margin:0 11px" />)$'
+ lineinfile: dest=/usr/share/roundcube/skins/{{ item }}/templates/login.html
+ regexp='^(<roundcube:object name="logo" src="/images/roundcube_logo.png"[^>]* />)$'
line='<a href="https://fripost.org">\1</a>'
backrefs=yes
owner=root group=root
mode=0644
+ with_items:
+ - classic
+ - larry
- name: Configure Roundcube plugins
template: src=usr/share/roundcube/plugins/{{ item }}/config.inc.php.j2