From a9a3ef77a3d314225be67a62dbe689d95adbbc04 Mon Sep 17 00:00:00 2001 From: Simon Spannagel Date: Mon, 22 Nov 2021 07:27:48 +0100 Subject: [PATCH] Remove old deploy hook method superseded by pre-hook and post-hook methods --- defaults/main.yml | 8 -------- tasks/install-deploy-hook.yml | 14 -------------- tasks/main.yml | 4 ---- 3 files changed, 26 deletions(-) delete mode 100644 tasks/install-deploy-hook.yml diff --git a/defaults/main.yml b/defaults/main.yml index f5c2f44..bba711a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -58,11 +58,3 @@ certbot_keep_updated: true # Where to put Certbot when installing from source. certbot_dir: /opt/certbot - -# Restart this service after successful certificate creation: -certbot_deployhook: | - {% for service in certbot_create_standalone_stop_services %} - if systemctl list-unit-files | grep -q "^{{ service }}.service"; then - systemctl restart {{ service }} - fi - {% endfor %} diff --git a/tasks/install-deploy-hook.yml b/tasks/install-deploy-hook.yml deleted file mode 100644 index e50375c..0000000 --- a/tasks/install-deploy-hook.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -- name: Ensure deploy hook directory exists - file: - path: /etc/letsencrypt/renewal-hooks/deploy - state: directory - mode: 0755 - when: certbot_deployhook is defined - -- name: Create deploy hook - copy: - content: "{{ certbot_deployhook }}" - dest: /etc/letsencrypt/renewal-hooks/deploy/ansible.sh - mode: u+rwx - when: certbot_deployhook is defined diff --git a/tasks/main.yml b/tasks/main.yml index fcec6ff..894143c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -21,10 +21,6 @@ loop_control: loop_var: cert_item -- include_tasks: install-deploy-hook.yml - when: - - certbot_create_method == 'webroot' - - include_tasks: create-cert-webroot.yml with_items: "{{ certbot_certs }}" when: