created major large-scale changes
This commit is contained in:
14
roles/init-server/templates/user/certbot.env.j2
Normal file
14
roles/init-server/templates/user/certbot.env.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
CERTBOT_EMAIL="{{ certbot.email }}"
|
||||
CERTBOT_AUTHENTICATOR={{ certbot.auth_method }}
|
||||
SERVER_WEBROOT_PATH={{ ansible_user_home.stdout + "/srv/acme." + inventory_hostname }}
|
||||
{% if compose.mode == "dev" %}
|
||||
# @TODO find a better way to have processed the below in Ansible
|
||||
CERTBOT_CHALLENGE_DOMAINS={{ certbot.domains | map("regex_replace", "\\.([^\\.]*)$", ".test") | list | join(",") }}
|
||||
STAGING=1
|
||||
DEBUG=1
|
||||
VERBOSE=1
|
||||
RUN_ONCE=1
|
||||
{% elif compose.mode == "prod" %}
|
||||
CERTBOT_CHALLENGE_DOMAINS={{ certbot.domains | join(",") }}
|
||||
CRON={{ certbot.cron }}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user