From e659f03396280f4194bdf7114230256816ea5db9 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Mon, 6 Jul 2020 09:47:55 +0200 Subject: [PATCH] fix certificate configuration error --- tasks/certificate.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/certificate.yml b/tasks/certificate.yml index 4115b95..1233f3b 100644 --- a/tasks/certificate.yml +++ b/tasks/certificate.yml @@ -1,13 +1,14 @@ --- -- include_role: +- import_role: name: certificate vars: - certificate_name: nextcloud + certificate_name: "{{nextcloud_server_names|first}}" + certificate_common_name: "{{nextcloud_server_names|first}}" certificate_directory: /etc/ssl certificate_key_usage: - digitalSignature - keyEncipherment certificate_extended_key_usage: - serverAuth - certificate_alt_names: "{{ nextcloud_server_names | map('regex_replace', '(.*)','DNS:\\1') | list }}" + certificate_alt_names: "{{ nextcloud_server_names | map('regex_replace', '^(.*)$','DNS:\\1') | list }}"