Remove old deploy hook method superseded by pre-hook and post-hook methods

This commit is contained in:
Simon Spannagel 2021-11-22 07:27:48 +01:00
parent e35a5d0fb9
commit a9a3ef77a3
3 changed files with 0 additions and 26 deletions

View File

@ -58,11 +58,3 @@ certbot_keep_updated: true
# Where to put Certbot when installing from source. # Where to put Certbot when installing from source.
certbot_dir: /opt/certbot 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 %}

View File

@ -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

View File

@ -21,10 +21,6 @@
loop_control: loop_control:
loop_var: cert_item loop_var: cert_item
- include_tasks: install-deploy-hook.yml
when:
- certbot_create_method == 'webroot'
- include_tasks: create-cert-webroot.yml - include_tasks: create-cert-webroot.yml
with_items: "{{ certbot_certs }}" with_items: "{{ certbot_certs }}"
when: when: