summaryrefslogtreecommitdiff
path: root/roles/certbot/tasks/main.yml
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2024-03-31 17:37:47 +0100
committerDmitry Ilvokhin <d@ilvokhin.com>2024-03-31 17:37:47 +0100
commitf40c00974ff009e0f00aa1c41bf39b691e79e923 (patch)
tree1378c8a72a5c9da526a902423227ee3e7d4d1676 /roles/certbot/tasks/main.yml
parent283f389797b0056846580eef0f0a1729824d3e01 (diff)
downloadinfra-f40c00974ff009e0f00aa1c41bf39b691e79e923.tar.gz
infra-f40c00974ff009e0f00aa1c41bf39b691e79e923.tar.bz2
infra-f40c00974ff009e0f00aa1c41bf39b691e79e923.zip
Manually create directories for certbot hooks
Diffstat (limited to 'roles/certbot/tasks/main.yml')
-rw-r--r--roles/certbot/tasks/main.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/certbot/tasks/main.yml b/roles/certbot/tasks/main.yml
index 2862089..bef7fa6 100644
--- a/roles/certbot/tasks/main.yml
+++ b/roles/certbot/tasks/main.yml
@@ -6,6 +6,19 @@
loop:
- certbot
+- name: Setup certbot directories
+ ansible.builtin.file:
+ path: '{{ item }}'
+ state: directory
+ owner: root
+ group: root
+ mode: u+rw,g+r,o+r
+ loop:
+ - /etc/letsencrypt/renewal-hooks
+ - /etc/letsencrypt/renewal-hooks/deploy
+ - /etc/letsencrypt/renewal-hooks/post
+ - /etc/letsencrypt/renewal-hooks/pre
+
- name: Configure certbot systemd service
ansible.builtin.copy:
src: files/certbot.service