mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
Remove old deploy hook method superseded by pre-hook and post-hook methods
This commit is contained in:
parent
e35a5d0fb9
commit
a9a3ef77a3
@ -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…
x
Reference in New Issue
Block a user