Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add variable to make ACME server URL configurable #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
acmetool_websrv: "nginx"

# acmetool response file

acmetool_responses_method: "webroot" # this is overridden if acmetool_websrv is set
acmetool_responses_email: "hostmaster@example.com"
acmetool_responses_install_cronjob: "true"
acmetool_responses_install_haproxy_script: "false"
acmetool_responses_install_redirector_systemd: "false"
acmetool_responses_agreement: "https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf"
acmetool_responses_webroot_path: "/var/www/foo/bar/.well-known/acme-challenge" # only when acmetool_responses_method == "webroot"
acmetool_responses_server: "https://acme-v01.api.letsencrypt.org/directory" # Let's Encrypt production
# to use Let's Encrypt staging environment, replace above with
# acmetool_responses_server: "https://acme-staging.api.letsencrypt.org/directory"

# acmetool cert hostname
# for multiple sites with one cert, separate site names with a space
Expand Down
2 changes: 1 addition & 1 deletion templates/response-file.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# This file is YAML. Note that JSON is a subset of YAML.
"acme-enter-email": {{ acmetool_responses_email }}
"acme-agreement:{{ acmetool_responses_agreement }}": true
"acmetool-quickstart-choose-server": https://acme-v01.api.letsencrypt.org/directory
"acmetool-quickstart-choose-server": {{ acmetool_responses_server }}
"acmetool-quickstart-choose-method": {{ acmetool_responses_method }}
# This is only used if "acmetool-quickstart-choose-method" is "webroot".
"acmetool-quickstart-webroot-path": {{ acmetool_responses_webroot_path }}
Expand Down