aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ansible.cfg1
-rw-r--r--roles/certbot/tasks/main.yml6
2 files changed, 7 insertions, 0 deletions
diff --git a/ansible.cfg b/ansible.cfg
index 53f0162..cbc8f09 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -1,6 +1,7 @@
[defaults]
remote_user = root
inventory = inventory/hosts.yaml
+host_key_checking = False
[privilege_escalation]
become = yes
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: