roles/nginx: Use consistent task style

This commit is contained in:
Alan Orth 2021-03-19 23:45:41 +02:00
parent a34cb1e666
commit ceba0ea417
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 6 additions and 2 deletions

View File

@ -4,10 +4,14 @@
# snap now.
- block:
- name: Remove certbot
apt: name=certbot state=absent
apt:
name: certbot
state: absent
- name: Remove old certbot post and pre hooks for nginx
file: dest={{ item }} state=absent
file:
dest: "{{ item }}"
state: absent
with_items:
- /etc/letsencrypt/renewal-hooks/pre/stop-nginx.sh
- /etc/letsencrypt/renewal-hooks/post/start-nginx.sh