Skip to content

Commit

Permalink
Remove old deploy hook method superseded by pre-hook and post-hook me…
Browse files Browse the repository at this point in the history
…thods
  • Loading branch information
simonspa committed Nov 22, 2021
1 parent e35a5d0 commit a9a3ef7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
8 changes: 0 additions & 8 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
14 changes: 0 additions & 14 deletions tasks/install-deploy-hook.yml

This file was deleted.

4 changes: 0 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a9a3ef7

Please sign in to comment.