add letesencrypt hook

This commit is contained in:
lhahn committed 2023-08-26 21:56:47 +02:00
1 parent b6d7079426
commit f54f0f65bc
2 files changed
+42

No files matched your search

+10
View File
@@ -19,6 +19,15 @@
--redirect
when: certbot_nginx_installation.changed
- name: Setup renewal scripts
copy:
dest: "/etc/letsencrypt/renewal-hooks/{{ item.type }}/{{ item.name }}.sh"
mode: 0700
content: "{{ item.content }}"
loop: "{{ letsencrypt_renewal_scripts }}"
loop_control:
label: "{{ item.name }}"
- name: create let's-encrypt certificates for web web_sites
command:
cmd: |
@@ -40,3 +49,4 @@
name: letsencrypt
special_time: daily
job: /usr/bin/certbot -q renew