Let's uh... actually use the variable we set

This commit is contained in:
Salt 2020-02-06 01:16:54 -06:00
parent adbec68442
commit fc7f10a9e6

View File

@ -134,7 +134,7 @@
email_address: "rehashedsalt@cock.li"
- name: Create challenge for CSR
acme_certificate:
acme_directory: "https://acme-staging-v02.api.letsencrypt.org/directory"
acme_directory: "{{ acme_directory }}"
acme_version: 2
terms_agreed: yes
account_email: "rehashedsalt@cock.li"
@ -165,7 +165,7 @@
content: "{{ com_challenge['challenge_data'][nextcloud_url]['http-01']['resource_value'] }}"
- name: Create certificate
acme_certificate:
acme_directory: "https://acme-staging-v02.api.letsencrypt.org/directory"
acme_directory: "{{ acme_directory }}"
acme_version: 2
account_key: /etc/pki/cert/private/account.key
csr: "/etc/pki/cert/csr/{{ nextcloud_url }}.csr"