pagure: handle stunnel bundled cert in letsencrypt renews

This commit removes the old tasks to try and create a cert/intermediate
bundle file for stunnel in favor of just doing it when we renew/get the
cert. It also fixes stunnel to use the correct bundled cert.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-01-20 11:55:13 -08:00
parent ff51231e77
commit d44bc3991c
4 changed files with 18 additions and 25 deletions

View file

@ -135,3 +135,17 @@
- letsencrypt
delegate_to: "{{ certbot_addhost }}"
when: certbot_addhost is defined
- name: Install certificate bundle
copy: >
dest=/etc/pki/tls/certs/{{site_name}}.bundle.cert
content="{{certbot_chain.stdout}} {{certbot_certificate.stdout}}"
owner=root
group=root
mode=0644
notify:
- reload stunnel
tags:
- letsencrypt
delegate_to: "{{ certbot_bundlehost }}"
when: certbot_bundlehost is defined