mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 00:41:38 +02:00
feat: add support for environment variables
This commit is contained in:
parent
08543f45b2
commit
f8e92b7271
@ -15,6 +15,8 @@ certbot_create_if_missing: false
|
||||
certbot_create_method: standalone
|
||||
certbot_admin_email: email@example.com
|
||||
|
||||
certbot_env_vars: {}
|
||||
|
||||
# Default webroot, overwritten by individual per-cert webroot directories
|
||||
certbot_webroot: /var/www/letsencrypt
|
||||
|
||||
@ -26,6 +28,8 @@ certbot_certs: []
|
||||
# - example2.com
|
||||
# - domains:
|
||||
# - example3.com
|
||||
# env_vars:
|
||||
# REQUESTS_CA_BUNDLE: "/etc/ssl/certs/my_root_ca.pem"
|
||||
|
||||
certbot_create_command: >-
|
||||
{{ certbot_script }} certonly --{{ certbot_create_method }}
|
||||
|
@ -39,4 +39,5 @@
|
||||
|
||||
- name: Generate new certificate if one doesn't exist.
|
||||
command: "{{ certbot_create_command }}"
|
||||
environment: "{{ cert_item.env_vars | default(certbot_env_vars) }}"
|
||||
when: not letsencrypt_cert.stat.exists
|
||||
|
@ -11,4 +11,5 @@
|
||||
|
||||
- name: Generate new certificate if one doesn't exist.
|
||||
command: "{{ certbot_create_command }}"
|
||||
environment: "{{ cert_item.env_vars | default(certbot_env_vars) }}"
|
||||
when: not letsencrypt_cert.stat.exists
|
||||
|
Loading…
x
Reference in New Issue
Block a user