roundcube: use lineinfile for configure IMAP server and port

This commit is contained in:
Victor LABORIE 2017-10-25 10:46:30 +02:00
parent ee58a84588
commit 33fccf3b51
1 changed files with 17 additions and 4 deletions

View File

@ -6,10 +6,6 @@
value: "{{ item.value }}"
vtype: "{{ item.type }}"
with_items:
- { key: 'roundcube/dbconfig-reinstall', type: 'boolean', value: 'true' }
- { key: 'roundcube/language', type: 'select', value: 'fr_FR' }
- { key: 'roundcube/remote/port', type: 'string', value: '1143' }
- { key: 'roundcube/hosts', type: 'string', value: '127.0.0.1' }
- { key: 'roundcube/database-type', type: 'select', value: 'sqlite3' }
- { key: 'roundcube/db/basepath', type: 'string', value: '/var/lib/roundcube/' }
tags:
@ -27,6 +23,23 @@
tags:
- roundcube
- name: configure roundcube imap host
lineinfile:
dest: /etc/roundcube/config.inc.php
regexp: "\\$config\\['default_host'\\]"
line: "$config['default_host'] = array('127.0.0.1');"
tags:
- roundcube
- name: configure roudcube imap port
lineinfile:
dest: /etc/roundcube/config.inc.php
regexp: "\\$config\\['default_port'\\]"
insertafter: "\\$config\\['default_host'\\]"
line: "$config['default_port'] = 1143;"
tags:
- roundcube
- name: configure managesieve plugin
copy:
src: /usr/share/roundcube/plugins/managesieve/config.inc.php.dist