summaryrefslogtreecommitdiff
path: root/roles/x509/uacme/cert/prepare/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/x509/uacme/cert/prepare/tasks/main.yml')
-rw-r--r--roles/x509/uacme/cert/prepare/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/x509/uacme/cert/prepare/tasks/main.yml b/roles/x509/uacme/cert/prepare/tasks/main.yml
index a83651b3..c1420369 100644
--- a/roles/x509/uacme/cert/prepare/tasks/main.yml
+++ b/roles/x509/uacme/cert/prepare/tasks/main.yml
@@ -96,7 +96,7 @@
- name: install systemd unit snippet
when: "x509_certificate_renewal is defined and 'install' in x509_certificate_renewal"
copy:
- dest: "/etc/systemd/system/uacme-reconcile.service.d/{{ x509_certificate_name }}.conf"
+ dest: "/etc/systemd/system/uacme-reconcile.service.d/{{ uacme_cert_name }}.conf"
content: |
[Service]
{% for path in (x509_certificate_renewal.install | map(attribute='dest') | map('dirname') | unique | list) %}
@@ -107,6 +107,6 @@
- name: remove systemd unit snippet
when: "x509_certificate_renewal is undefined or 'install' not in x509_certificate_renewal"
file:
- path: "/etc/systemd/system/uacme-reconcile.service.d/{{ x509_certificate_name }}.conf"
+ path: "/etc/systemd/system/uacme-reconcile.service.d/{{ uacme_cert_name }}.conf"
state: absent
notify: reload systemd