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