From cfdcb42b9b79f93113d2da9fc6dd57da439101d6 Mon Sep 17 00:00:00 2001 From: Goran Kovac Date: Mon, 19 May 2025 16:36:08 +0200 Subject: [PATCH] Verbesserungen --- tasks.templates/t_ssl_create_certificate.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tasks.templates/t_ssl_create_certificate.yaml b/tasks.templates/t_ssl_create_certificate.yaml index d53473a..2adb9a1 100644 --- a/tasks.templates/t_ssl_create_certificate.yaml +++ b/tasks.templates/t_ssl_create_certificate.yaml @@ -8,10 +8,6 @@ # - ssl_lifetime: the lifetime of the certificate in days # - ssl_rsa_key_size: the size of the RSA key for the certificate - name: create a ssh-certificate - ansible.builtin.command: 'openssl req -x509 -nodes -days {{ssl_lifetime}} \ - -newkey rsa:{{ssl_rsa_key_size}} \ - -keyout /etc/ssl/private/{{domain}}.key \ - -out /etc/ssl/certs/{{domain}}.pem \ - -subj "/C={{ssl_country}}/ST={{ssl_state}}/L={{ssl_locality}}/O={{ssl_organization}}/CN={{domain}}"'' + ansible.builtin.command: 'openssl req -x509 -nodes -days {{ssl_lifetime}} -newkey rsa:{{ssl_rsa_key_size}} -keyout /etc/ssl/private/{{domain}}.key -out /etc/ssl/certs/{{domain}}.pem -subj "/C={{ssl_country}}/ST={{ssl_state}}/L={{ssl_locality}}/O={{ssl_organization}}/CN={{domain}}"' args: creates: /etc/ssl/private/{{domain}}.key -- 2.39.5