mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
Add default and document certbot_deployhook
This commit is contained in:
parent
34949a63d9
commit
5f476f829c
@ -82,6 +82,14 @@ Setting `certbot_install_method: snap` configures this role to install Certbot v
|
||||
|
||||
This install method is currently experimental and may or may not work across all Linux distributions.
|
||||
|
||||
#### Webroot Certificate Generation
|
||||
|
||||
certbot_deployhook: "service {{certbot_create_standalone_stop_services }} restart"
|
||||
|
||||
Script content for the deploy hook called by certbot after successfully obtaining the certificate
|
||||
|
||||
When using the `webroot` creation method, a `webroot` item has to be provided for every `certbot_certs` item, specifying which directory to use for the authentication. Also, make sure your webserver correctly delivers contents from this directory.
|
||||
|
||||
### Source Installation from Git
|
||||
|
||||
You can install Certbot from it's Git source repository if desired with `certbot_install_method: source`. This might be useful in several cases, but especially when older distributions don't have Certbot packages available (e.g. CentOS < 7, Ubuntu < 16.10 and Debian < 8).
|
||||
|
@ -54,3 +54,5 @@ certbot_keep_updated: true
|
||||
# Where to put Certbot when installing from source.
|
||||
certbot_dir: /opt/certbot
|
||||
|
||||
# Restart this service after successfull certificate creation:
|
||||
certbot_deployhook: "service {{certbot_create_standalone_stop_services }} restart"
|
Loading…
x
Reference in New Issue
Block a user