allow self-signed certs on mail server

This commit is contained in:
Mauro Torrez 2019-10-02 00:49:40 -03:00
parent 1378d4d677
commit 188f7f87ac

View File

@ -88,3 +88,21 @@
set_fact: set_fact:
roundcube_volume: "{{ lookup('vars','roundcube_volume') }}" roundcube_volume: "{{ lookup('vars','roundcube_volume') }}"
roundcube_volume_mountpoint: "{{ volinfo.volume.Mountpoint }}" roundcube_volume_mountpoint: "{{ volinfo.volume.Mountpoint }}"
- name: allow self-signed mail server certs
blockinfile:
state: present
path: "{{ roundcube_volume_mountpoint }}/config/config.inc.php"
block: |
$config['imap_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
),
);
$config['smtp_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
),
);