summaryrefslogtreecommitdiff
path: root/roles/x509/acmetool/cert/finalize
diff options
context:
space:
mode:
Diffstat (limited to 'roles/x509/acmetool/cert/finalize')
-rw-r--r--roles/x509/acmetool/cert/finalize/defaults/main.yml3
-rw-r--r--roles/x509/acmetool/cert/finalize/tasks/main.yml2
2 files changed, 4 insertions, 1 deletions
diff --git a/roles/x509/acmetool/cert/finalize/defaults/main.yml b/roles/x509/acmetool/cert/finalize/defaults/main.yml
index ab0afaa3..b9a80136 100644
--- a/roles/x509/acmetool/cert/finalize/defaults/main.yml
+++ b/roles/x509/acmetool/cert/finalize/defaults/main.yml
@@ -1,2 +1,5 @@
---
+acmetool_cert_hostnames: "{{ x509_certificate_hostnames }}"
+acmetool_cert_name: "{{ x509_certificate_name | default(acmetool_cert_hostnames[0]) }}"
+
acmetool_reconcile_disabled: false
diff --git a/roles/x509/acmetool/cert/finalize/tasks/main.yml b/roles/x509/acmetool/cert/finalize/tasks/main.yml
index 91bf5157..abb2d4cb 100644
--- a/roles/x509/acmetool/cert/finalize/tasks/main.yml
+++ b/roles/x509/acmetool/cert/finalize/tasks/main.yml
@@ -6,5 +6,5 @@
names: "{{ acmetool_cert_hostnames }}"
copy:
content: "{{ acmetool_cert_config | default({}) | combine(acmetool_cert_satisfy) | to_nice_yaml }}"
- dest: "/var/lib/acme/desired/{{ acmetool_cert_name | default(acmetool_cert_hostnames[0]) }}"
+ dest: "/var/lib/acme/desired/{{ acmetool_cert_name }}"
notify: reconcile acmetool