summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-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