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

pull/97/head
Simon Spannagel 3 years ago
parent e35a5d0fb9
commit a9a3ef77a3
  1. 8
      defaults/main.yml
  2. 14
      tasks/install-deploy-hook.yml
  3. 4
      tasks/main.yml

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

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

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

Loading…
Cancel
Save