From 0c469b73df57b25a96e77e0b9ae09ab7cd1bf128 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 22 Dec 2022 22:22:09 +0100 Subject: acmetool: minor refactroing --- roles/x509/acmetool/cert/handlers/main.yml | 2 +- roles/x509/acmetool/cert/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/x509/acmetool/cert') diff --git a/roles/x509/acmetool/cert/handlers/main.yml b/roles/x509/acmetool/cert/handlers/main.yml index 08892c18..a7fc43ed 100644 --- a/roles/x509/acmetool/cert/handlers/main.yml +++ b/roles/x509/acmetool/cert/handlers/main.yml @@ -1,6 +1,6 @@ --- - name: reconcile acmetool when: not acmetool_reconcile_disabled - ansible.builtin.systemd: + systemd: name: acmetool.service state: started diff --git a/roles/x509/acmetool/cert/tasks/main.yml b/roles/x509/acmetool/cert/tasks/main.yml index e97aab84..09980dad 100644 --- a/roles/x509/acmetool/cert/tasks/main.yml +++ b/roles/x509/acmetool/cert/tasks/main.yml @@ -4,7 +4,7 @@ acmetool_cert_satisfy: satisfy: names: "{{ acmetool_cert_hostnames | default([acmetool_cert_name]) }}" - ansible.builtin.copy: + copy: content: "{{ acmetool_cert_config | default({}) | combine(acmetool_cert_satisfy) | to_nice_yaml }}" dest: "/var/lib/acme/desired/{{ acmetool_cert_name }}" notify: reconcile acmetool -- cgit v1.2.3