Browse Source

now is possible to define acme dir with letsencrypt_acme_dir var

nginx-letsencrypt
Lorenzo 8 years ago
parent
commit
293d502ade
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      roles/nginx/tasks/letsencrypt.yaml

+ 2
- 0
roles/nginx/tasks/letsencrypt.yaml View File

@ -22,6 +22,7 @@
account_key: "{{ letsencrypt_account_key }}" account_key: "{{ letsencrypt_account_key }}"
csr: "{{ item.letsencrypt.ssl_csr | default(item.server.ssl_certificate~'.csr') }}" csr: "{{ item.letsencrypt.ssl_csr | default(item.server.ssl_certificate~'.csr') }}"
dest: "{{ item.server.ssl_certificate }}" dest: "{{ item.server.ssl_certificate }}"
acme_directory: "{{ letsencrypt_acme_dir | default(omit) }}"
register: letsencrypt_challenge register: letsencrypt_challenge
- name: store challenge(s) in local dir - name: store challenge(s) in local dir
@ -39,5 +40,6 @@
account_key: "{{ letsencrypt_account_key }}" account_key: "{{ letsencrypt_account_key }}"
csr: "{{ item.letsencrypt.ssl_csr | default(item.server.ssl_certificate~'.csr') }}" csr: "{{ item.letsencrypt.ssl_csr | default(item.server.ssl_certificate~'.csr') }}"
dest: "{{ item.server.ssl_certificate }}" dest: "{{ item.server.ssl_certificate }}"
acme_directory: "{{ letsencrypt_acme_dir | default(omit) }}"
data: "{{ letsencrypt_challenge }}" data: "{{ letsencrypt_challenge }}"
notify: restart nginx notify: restart nginx

Loading…
Cancel
Save