]> gitweb.hamatoma.de Git - ansknife.git/commitdiff
Verbesserungen
authorGoran Kovac <goran.kovac@cit-professionals.de>
Mon, 19 May 2025 14:36:08 +0000 (16:36 +0200)
committerGoran Kovac <goran.kovac@cit-professionals.de>
Mon, 19 May 2025 14:36:08 +0000 (16:36 +0200)
tasks.templates/t_ssl_create_certificate.yaml

index d53473a85159afaea7449e07c32d2281295734b2..2adb9a1127b2da40786af08ae0365bca990562b7 100644 (file)
@@ -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