Removes --pre/post-hook args from certbot invokation

These are obsolete as pointed out in 
https://github.com/geerlingguy/ansible-role-certbot/pull/80#issuecomment-575138287
This commit is contained in:
Frank Sachsenheim 2020-12-18 16:26:34 +01:00
parent 8164566c4f
commit 2da7a3f2b6

View File

@ -21,12 +21,6 @@ certbot_create_command: >-
{{ certbot_script }} certonly --standalone --noninteractive --agree-tos
--email {{ cert_item.email | default(certbot_admin_email) }}
-d {{ cert_item.domains | join(',') }}
{{ '--pre-hook /etc/letsencrypt/renewal-hooks/pre/stop_services'
if certbot_create_standalone_stop_services
else '' }}
{{ '--post-hook /etc/letsencrypt/renewal-hooks/post/start_services'
if certbot_create_standalone_stop_services
else '' }}
certbot_create_standalone_stop_services:
- nginx