From 3571bc3d32c280ea694e926b6da31b6b23826400 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Thu, 18 Jul 2024 00:45:18 -0400 Subject: [PATCH] fix --- playbooks/roles/mail/tasks/main.yml | 8 ++++++++ playbooks/roles/mail/templates/docker-compose.yml.j2 | 1 - playbooks/roles/mail/templates/ssl.inc.php.j2 | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 playbooks/roles/mail/templates/ssl.inc.php.j2 diff --git a/playbooks/roles/mail/tasks/main.yml b/playbooks/roles/mail/tasks/main.yml index 822357a..21caf31 100644 --- a/playbooks/roles/mail/tasks/main.yml +++ b/playbooks/roles/mail/tasks/main.yml @@ -65,6 +65,14 @@ group: root mode: 0777 +- name: Build roundcube ssl plugin config + ansible.builtin.template: + src: ssl.inc.php.j2 + dest: /etc/docker/compose/mail/docker-data/roundcube/config/ssl.inc.php + owner: root + group: root + mode: 0777 + - name: Build mail docker-compose.yml.j2 ansible.builtin.template: src: docker-compose.yml.j2 diff --git a/playbooks/roles/mail/templates/docker-compose.yml.j2 b/playbooks/roles/mail/templates/docker-compose.yml.j2 index f71914c..2e122f4 100644 --- a/playbooks/roles/mail/templates/docker-compose.yml.j2 +++ b/playbooks/roles/mail/templates/docker-compose.yml.j2 @@ -5,7 +5,6 @@ services: image: roundcube/roundcubemail:latest restart: always volumes: - - ./docker-data/roundcube/www:/var/www/html - ./docker-data/roundcube/db/sqlite:/var/roundcube/db - ./docker-data/roundcube/config:/var/roundcube/config ports: diff --git a/playbooks/roles/mail/templates/ssl.inc.php.j2 b/playbooks/roles/mail/templates/ssl.inc.php.j2 new file mode 100644 index 0000000..eda77c5 --- /dev/null +++ b/playbooks/roles/mail/templates/ssl.inc.php.j2 @@ -0,0 +1,5 @@ + array('verify_peer' => true, 'verify_peer_name' => false), + 'tls' => array('verify_peer' => true, 'verify_peer_name' => false), +);