aboutsummaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/certbot/tasks/main.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/certbot/tasks/main.yml b/ansible/roles/certbot/tasks/main.yml
index 8aeae92..345dd5d 100644
--- a/ansible/roles/certbot/tasks/main.yml
+++ b/ansible/roles/certbot/tasks/main.yml
@@ -74,3 +74,16 @@
when: "inventory_hostname in certbot_cert_users"
tags:
- role::certbot
+
+
+- name: Reload nginx after certificate renewal
+ ansible.builtin.copy:
+ content: |
+ #!/bin/sh
+ set -ex
+
+ systemctl reload nginx
+ dest: /etc/letsencrypt/renewal-hooks/deploy/reload-nginx
+ owner: root
+ group: root
+ mode: "0500"