aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGravatar chrislovering <[email protected]>2023-06-02 00:27:30 +0100
committerGravatar ChrisJL <[email protected]>2023-07-24 14:42:09 +0100
commit3448317a62cea1432d80e29b2f2320f61c9b29b2 (patch)
tree39168197b14983e3b0a1aff39f9d68a52bca0927 /roles
parentRe-add previous ansible roles (diff)
Ensure renewal-hooks deploy directory exists before syncing certs
Diffstat (limited to 'roles')
-rw-r--r--roles/certbot/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/certbot/tasks/main.yml b/roles/certbot/tasks/main.yml
index abe22cc..3766444 100644
--- a/roles/certbot/tasks/main.yml
+++ b/roles/certbot/tasks/main.yml
@@ -80,6 +80,12 @@
tags:
- role::certbot
+- name: Ensure renewal-hooks deploy directory exists
+ file:
+ path: /etc/letsencrypt/renewal-hooks/deploy
+ recurse: true
+ state: directory
+
- name: Create renewal hook to synchronize certificates
when: inventory_hostname == ansible_play_hosts_all[0]
template: