From 428f4be8dacfff3a306e1809dc527770ead23797 Mon Sep 17 00:00:00 2001 From: Crest Date: Fri, 1 Jul 2022 13:56:31 +0200 Subject: [PATCH] Add --email to acme.sh invocation. Closes #28. --- roles/haproxy/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml index f542c5c..7879813 100644 --- a/roles/haproxy/tasks/main.yml +++ b/roles/haproxy/tasks/main.yml @@ -216,7 +216,7 @@ meta: flush_handlers - name: "Register Let's Encrypt account" - command: env sudo -u acme acme.sh --register-account --home /var/db/acme + command: 'env sudo -u acme acme.sh --email {{ haproxy_acme_email }} --server letsencrypt --register-account --home /var/db/acme' args: creates: /var/db/acme/ca/acme-v02.api.letsencrypt.org/account.json