[ANSIBLE 3.2.0] Fix regex pattern in 'certificates' role
[oom/offline-installer.git] / ansible / roles / certificates / tasks / generate-certificates.yml
index 43b774b..d2a9f4e 100644 (file)
@@ -59,7 +59,7 @@
     extended_key_usage:
       - serverAuth
     subject_alt_name:
-      "{{ all_simulated_hosts | map('regex_replace', '(.*)', 'DNS:\\1') | list }}"
+      "{{ all_simulated_hosts | map('regex_replace', '^(.*)$', 'DNS:\\1') | list }}"
 
 - name: Sign Nexus certificate
   openssl_certificate: