summaryrefslogtreecommitdiffstats
path: root/roles/webmail/tasks/roundcube.yml
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-05-17 20:35:37 +0200
committerGuilhem Moulin <guilhem@fripost.org>2016-05-17 22:07:45 +0200
commit7a562e807515506d7dca2f370f63057be7366c34 (patch)
tree129a3fb021685ce04f9916c3163eb13ae3f30570 /roles/webmail/tasks/roundcube.yml
parentc459a95cd4013e489ef4f9d47c05d1c98798522c (diff)
roundube: Pin X.509 certificate for sieve.fripost.org:4190.
Diffstat (limited to 'roles/webmail/tasks/roundcube.yml')
-rw-r--r--roles/webmail/tasks/roundcube.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/roles/webmail/tasks/roundcube.yml b/roles/webmail/tasks/roundcube.yml
index eb04ba1..e416656 100644
--- a/roles/webmail/tasks/roundcube.yml
+++ b/roles/webmail/tasks/roundcube.yml
@@ -10,41 +10,40 @@
- 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
- name: Configure Roundcube
lineinfile: dest=/etc/roundcube/config.inc.php
regexp='^\\s*\\$config\\[\'{{ item.var }}\'\\]\\s*='
line='$config[\'{{ item.var }}\'] = {{ item.value }};'
owner=root group=www-data
mode=0640
with_items:
# Logging/Debugging
- { var: smtp_log, value: "false" }
# IMAP
@@ -80,43 +79,50 @@
- 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
- name: Configure Roundcube plugins
copy: src=etc/roundcube/plugins/{{ item }}/config.inc.php
dest=/etc/roundcube/plugins/{{ item }}/config.inc.php
owner=root group=root
mode=0644
with_items:
- additional_message_headers
- jqueryui
- - managesieve
- password
+- name: Configure Roundcube plugins (2)
+ template: src=etc/roundcube/plugins/{{ item }}/config.inc.php.j2
+ dest=/etc/roundcube/plugins/{{ item }}/config.inc.php
+ owner=root group=root
+ mode=0644
+ with_items:
+ - managesieve
+
- name: Start php5-fpm
service: name=php5-fpm state=started
- name: Copy /etc/nginx/sites-available/roundcube
copy: src=etc/nginx/sites-available/roundcube
dest=/etc/nginx/sites-available/roundcube
owner=root group=root
mode=0644
register: r1
notify:
- Restart Nginx
- name: Create /etc/nginx/sites-enabled/roundcube
file: src=../sites-available/roundcube
dest=/etc/nginx/sites-enabled/roundcube
owner=root group=root
state=link force=yes
register: r2
notify:
- Restart Nginx