diff --git a/roles/nginx/tasks/letsencrypt.yml b/roles/nginx/tasks/letsencrypt.yml index 8ed6763..c40fc37 100644 --- a/roles/nginx/tasks/letsencrypt.yml +++ b/roles/nginx/tasks/letsencrypt.yml @@ -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', '==')