roundcube: use lineinfile for configure IMAP server and port
This commit is contained in:
parent
ee58a84588
commit
33fccf3b51
|
@ -6,10 +6,6 @@
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
vtype: "{{ item.type }}"
|
vtype: "{{ item.type }}"
|
||||||
with_items:
|
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/database-type', type: 'select', value: 'sqlite3' }
|
||||||
- { key: 'roundcube/db/basepath', type: 'string', value: '/var/lib/roundcube/' }
|
- { key: 'roundcube/db/basepath', type: 'string', value: '/var/lib/roundcube/' }
|
||||||
tags:
|
tags:
|
||||||
|
@ -27,6 +23,23 @@
|
||||||
tags:
|
tags:
|
||||||
- roundcube
|
- 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
|
- name: configure managesieve plugin
|
||||||
copy:
|
copy:
|
||||||
src: /usr/share/roundcube/plugins/managesieve/config.inc.php.dist
|
src: /usr/share/roundcube/plugins/managesieve/config.inc.php.dist
|
||||||
|
|
Loading…
Reference in New Issue