mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
Allow overriding /etc/letsencrypt location
This commit is contained in:
parent
919c2ba7b5
commit
24580c85d2
@ -51,6 +51,8 @@ A list of domains (and other data) for which certs should be generated. You can
|
||||
|
||||
The `certbot_create_command` defines the command used to generate the cert.
|
||||
|
||||
The `certbot_etc` variable defaulting to `/etc/letsencrypt` allows using a non-standard location for Certbot configuration.
|
||||
|
||||
#### Standalone Certificate Generation
|
||||
|
||||
certbot_create_standalone_stop_services:
|
||||
|
@ -7,6 +7,7 @@ certbot_auto_renew_minute: "30"
|
||||
certbot_auto_renew_options: "--quiet --no-self-upgrade"
|
||||
|
||||
# Parameters used when creating new Certbot certs.
|
||||
certbot_etc: /etc/letsencrypt
|
||||
certbot_create_if_missing: false
|
||||
certbot_create_method: standalone
|
||||
certbot_admin_email: email@example.com
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: Check if certificate already exists.
|
||||
stat:
|
||||
path: /etc/letsencrypt/live/{{ cert_item.domains | first | replace('*.', '') }}/cert.pem
|
||||
path: "{{ certbot_etc }}/live/{{ cert_item.domains | first | replace('*.', '') }}/cert.pem"
|
||||
register: letsencrypt_cert
|
||||
|
||||
- name: Stop services to allow certbot to generate a cert.
|
||||
|
Loading…
x
Reference in New Issue
Block a user