summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-09-29 02:36:46 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-09-29 02:36:46 +0200
commitbf410757052f9e8572a856f45007d89c81cc066b (patch)
treece3d372460edc77c0125bed95a45b83becc1a2bd
parentbc70532fac05273647092617733829545a3b8f0d (diff)
roundcube: Use php5-enchant and GNU Aspell for spell-checking.
-rw-r--r--roles/webmail/tasks/roundcube.yml19
1 files changed, 18 insertions, 1 deletions
diff --git a/roles/webmail/tasks/roundcube.yml b/roles/webmail/tasks/roundcube.yml
index c783feb..5ef1288 100644
--- a/roles/webmail/tasks/roundcube.yml
+++ b/roles/webmail/tasks/roundcube.yml
@@ -1,27 +1,40 @@
- name: Install PHP
apt: pkg={{ item }}
with_items:
- php5-fpm
- php5-ldap
- php5-gd
- - php5-pspell
+ # spell-checking
+ - php5-enchant
+
+- name: Install GNU Aspell and some dictionaries
+ apt: pkg={{ item }}
+ with_items:
+ - aspell
+ - aspell-da
+ - aspell-de
+ - aspell-en
+ - aspell-es
+ - aspell-fr
+ - aspell-no
+ - aspell-sv
- name: Install Roundcube
apt: pkg={{ item }} default_release={{ ansible_lsb.codename }}-backports
with_items:
- roundcube-core
- roundcube-mysql
- roundcube-plugins
- php-net-sieve
- php-net-ldap3
- php-mail-mimedecode
- name: Copy fripost's logo
copy: src=usr/share/roundcube/skins/{{ item }}/images/fripost_logo.png
dest=/usr/share/roundcube/skins/{{ item }}/images/fripost_logo.png
owner=root group=root
mode=0644
with_items:
- classic
- larry
@@ -34,40 +47,44 @@
with_items:
# Logging/Debugging
- { var: smtp_log, value: "false" }
# IMAP
- { var: default_host, value: "'localhost'" }
- { var: default_port, value: "143" }
- { var: imap_auth_type, value: "'PLAIN'" }
- { var: imap_cache, value: "null" }
- { var: messages_cache, value: "false" }
# SMTP
- { var: smtp_server, value: "'localhost'" }
- { var: smtp_port, value: "2525" }
# System
- { var: force_https, value: "true" }
- { var: login_autocomplete, value: "2" }
- { var: skin_logo, value: "'/images/fripost_logo.png'" }
- { var: username_domain, value: "'fripost.org'" }
- { var: product_name, value: "'Fripost Webmail'" }
# Plugins
- { var: plugins, value: "array('archive','additional_message_headers','managesieve','password')" }
+ # Spell Checking
+ - { var: enable_spellcheck, value: "'true'" }
+ - { var: spellcheck_engine, value: "'enchant'" }
+ - { var: spellcheck_languages, value: "array('da','de','en','es','fr','no','sv')" }
# User Interface
- { var: skin, value: "'larry'" }
- { var: language, value: "'sv_SE'" }
- { var: create_default_folders, value: "true" }
# User Preferences
- { var: htmleditor, value: "3" }
- { 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/{{ 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