Ensure nginx is reloaded when a certificate is renewed.

This commit is contained in:
Julien Palard 2022-08-03 10:32:15 +02:00
parent 83c6fbefbe
commit f6f700c02e
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8

View File

@ -51,6 +51,20 @@
env: yes
job: /usr/sbin
- name: Setup renewal hook directory
file:
path: /etc/letsencrypt/renewal-hooks/post
state: directory
mode: 0755
- name: Setup renewal hook script
copy:
dest: /etc/letsencrypt/renewal-hooks/deploy/nginx.sh
mode: 0755
content: |
#!/bin/sh
/usr/bin/systemctl reload nginx
- name: Install nginx
package:
state: present