commit 0528e5435b4d69e8e5090adfb4792c5c2afa0013 Author: Radosław Piliszek Date: Thu Oct 8 16:57:16 2020 +0200 Fix haproxy bundle generation This fixes the `certificates` command to not include CSRs in the haproxy bundle. The regex was wrong. Change-Id: If25a6d5dd40f507fea4470be01baeeb7c8a790b4 (cherry picked from commit 3f9d30a28f2dc283209ad76393be9eb601619fcf) diff --git a/ansible/roles/certificates/tasks/generate.yml b/ansible/roles/certificates/tasks/generate.yml index acb68fa..fe16f46 100644 --- a/ansible/roles/certificates/tasks/generate.yml +++ b/ansible/roles/certificates/tasks/generate.yml @@ -60,7 +60,7 @@ - name: Creating external Server PEM File assemble: - regexp: '.*[crt|key]' + regexp: \.(crt|key)$ src: "{{ external_dir }}" dest: "{{ kolla_external_fqdn_cert }}" mode: "0660" @@ -128,7 +128,7 @@ - name: Creating internal Server PEM File assemble: - regexp: '.*[crt|key]' + regexp: \.(crt|key)$ src: "{{ internal_dir }}" dest: "{{ kolla_internal_fqdn_cert }}" mode: "0660"