From: Goran Kovac Date: Mon, 19 May 2025 14:36:08 +0000 (+0200) Subject: Verbesserungen X-Git-Url: https://gitweb.hamatoma.de/?a=commitdiff_plain;h=cfdcb42b9b79f93113d2da9fc6dd57da439101d6;p=ansknife.git Verbesserungen --- 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