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

View File

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