mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
Compare commits
3 Commits
08543f45b2
...
cb3b03f435
Author | SHA1 | Date | |
---|---|---|---|
|
cb3b03f435 | ||
|
5a23e85f1c | ||
|
3fcd4e0258 |
@ -63,7 +63,7 @@ A list of domains (and other data) for which certs should be generated. You can
|
|||||||
|
|
||||||
certbot_create_command: "{{ certbot_script }} certonly --standalone --noninteractive --agree-tos --email {{ cert_item.email | default(certbot_admin_email) }} -d {{ cert_item.domains | join(',') }}"
|
certbot_create_command: "{{ certbot_script }} certonly --standalone --noninteractive --agree-tos --email {{ cert_item.email | default(certbot_admin_email) }} -d {{ cert_item.domains | join(',') }}"
|
||||||
|
|
||||||
The `certbot_create_command` defines the command used to generate the cert.
|
The `certbot_create_command` defines the command used to generate the cert. See the full default command inside `defaults/main.yml` for a full example—and you can easily add in extra arguments that are not in the default command with the `certbot_create_extra_args` variable.
|
||||||
|
|
||||||
#### Standalone Certificate Generation
|
#### Standalone Certificate Generation
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ certbot_create_command: >-
|
|||||||
--email {{ cert_item.email | default(certbot_admin_email) }}
|
--email {{ cert_item.email | default(certbot_admin_email) }}
|
||||||
{{ '--webroot-path ' if certbot_create_method == 'webroot' else '' }}
|
{{ '--webroot-path ' if certbot_create_method == 'webroot' else '' }}
|
||||||
{{ cert_item.webroot | default(certbot_webroot) if certbot_create_method == 'webroot' else '' }}
|
{{ cert_item.webroot | default(certbot_webroot) if certbot_create_method == 'webroot' else '' }}
|
||||||
|
{{ certbot_create_extra_args }}
|
||||||
-d {{ cert_item.domains | join(',') }}
|
-d {{ cert_item.domains | join(',') }}
|
||||||
{{ '--pre-hook /etc/letsencrypt/renewal-hooks/pre/stop_services'
|
{{ '--pre-hook /etc/letsencrypt/renewal-hooks/pre/stop_services'
|
||||||
if certbot_create_standalone_stop_services and certbot_create_method == 'standalone'
|
if certbot_create_standalone_stop_services and certbot_create_method == 'standalone'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user