roles/nginx: Fix Let's Encrypt pre/post renewal hooks
This commit is contained in:
parent
d553f80a00
commit
d4fd06862a
@ -128,7 +128,7 @@
|
|||||||
- name: Copy certbot post and pre hooks for nginx
|
- name: Copy certbot post and pre hooks for nginx
|
||||||
copy: src={{ item.src }} dest={{ item.dest }} owner=root group=root mode=0755
|
copy: src={{ item.src }} dest={{ item.dest }} owner=root group=root mode=0755
|
||||||
with_items:
|
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' }
|
- { 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', '==')
|
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '==')
|
||||||
|
Loading…
Reference in New Issue
Block a user