From 4757c13a2e79e8a7d7332471e33061804d38c6d1 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Mon, 24 Dec 2018 09:38:00 +0200 Subject: [PATCH] Do not install openssl if not necessary Fix for d28bdb325871. We were only supposed to install openssl when the self-signed SSL certificate retrieval method is used, not always. --- roles/matrix-server/tasks/setup/ssl/setup_ssl_self_signed.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/matrix-server/tasks/setup/ssl/setup_ssl_self_signed.yml b/roles/matrix-server/tasks/setup/ssl/setup_ssl_self_signed.yml index 92780266b..65bb86c4a 100644 --- a/roles/matrix-server/tasks/setup/ssl/setup_ssl_self_signed.yml +++ b/roles/matrix-server/tasks/setup/ssl/setup_ssl_self_signed.yml @@ -6,7 +6,7 @@ - openssl state: present update_cache: no - when: ansible_os_family == 'RedHat' + when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_os_family == 'RedHat'" - name: Ensure APT usage dependencies are installed (Debian) apt: @@ -14,7 +14,7 @@ - openssl state: present update_cache: no - when: ansible_os_family == 'Debian' + when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_os_family == 'Debian'" - name: Obtain certificates include_tasks: "tasks/setup/ssl/setup_ssl_self_signed_obtain_for_domain.yml"