roles/nginx: Fix Let's Encrypt pre/post renewal hooks

This commit is contained in:
Alan Orth 2020-12-10 15:20:23 +02:00
parent d553f80a00
commit d4fd06862a
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -128,7 +128,7 @@
- name: Copy certbot post and pre hooks for nginx
copy: src={{ item.src }} dest={{ item.dest }} owner=root group=root mode=0755
with_items:
- { src: 'stop-nginx.sh', dest: '/etc/letsencrypt/renewal-hooks/post/stop-nginx.sh' }
- { src: 'stop-nginx.sh', dest: '/etc/letsencrypt/renewal-hooks/pre/stop-nginx.sh' }
- { src: 'start-nginx.sh', dest: '/etc/letsencrypt/renewal-hooks/post/start-nginx.sh' }
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '==')