From 293d502adea5a6a1cf9adb701291d34d8a7217be Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Sun, 20 Nov 2016 03:03:09 +0100 Subject: [PATCH] now is possible to define acme dir with letsencrypt_acme_dir var --- roles/nginx/tasks/letsencrypt.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/nginx/tasks/letsencrypt.yaml b/roles/nginx/tasks/letsencrypt.yaml index e447897..96cfc7b 100644 --- a/roles/nginx/tasks/letsencrypt.yaml +++ b/roles/nginx/tasks/letsencrypt.yaml @@ -22,6 +22,7 @@ account_key: "{{ letsencrypt_account_key }}" csr: "{{ item.letsencrypt.ssl_csr | default(item.server.ssl_certificate~'.csr') }}" dest: "{{ item.server.ssl_certificate }}" + acme_directory: "{{ letsencrypt_acme_dir | default(omit) }}" register: letsencrypt_challenge - name: store challenge(s) in local dir @@ -39,5 +40,6 @@ account_key: "{{ letsencrypt_account_key }}" csr: "{{ item.letsencrypt.ssl_csr | default(item.server.ssl_certificate~'.csr') }}" dest: "{{ item.server.ssl_certificate }}" + acme_directory: "{{ letsencrypt_acme_dir | default(omit) }}" data: "{{ letsencrypt_challenge }}" notify: restart nginx