From ec1ad67ecc363802c0a1312afe767905cacb8fcf Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 30 Aug 2023 19:11:53 +0200 Subject: fix variable usage in x509 roles --- roles/x509/uacme/cert/prepare/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/x509/uacme/cert/prepare/tasks/main.yml') 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 -- cgit v1.2.3