From 925760331cab697d3a623d1c4e5c947cee8ce5c5 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 25 Jan 2023 09:56:31 -0800 Subject: [PATCH] letsencrypt: Try and put the combined cert in the format stunnel likes Right now it's adding the cert without a newline at the end, but it also expects the cert to be at the top and the intermediate below it. So, swap them around and try putting a newline in it. Signed-off-by: Kevin Fenzi --- roles/letsencrypt/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/letsencrypt/tasks/main.yml b/roles/letsencrypt/tasks/main.yml index 514c5a3331..e986eb2011 100644 --- a/roles/letsencrypt/tasks/main.yml +++ b/roles/letsencrypt/tasks/main.yml @@ -139,7 +139,8 @@ - name: Install certificate bundle copy: > dest=/etc/pki/tls/certs/{{site_name}}.bundle.cert - content="{{certbot_chain.stdout}} {{certbot_certificate.stdout}}" + content="{{certbot_certificate.stdout} +certbot_chain.stdout}}" owner=root group=root mode=0644