summaryrefslogtreecommitdiff
path: root/roles/x509/acmetool/cert/prepare
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-10-24 23:43:20 +0200
committerChristian Pointner <equinox@spreadspace.org>2023-10-24 23:43:20 +0200
commit792ececf6b450ad9588c45d0f4b8652e42145f3d (patch)
tree121e22f50e91a552a0067640024997d313c8c16a /roles/x509/acmetool/cert/prepare
parentadd new role docker/registry (WIP) (diff)
x509: some daemons can't be reloaded and need to be restarted...
Diffstat (limited to 'roles/x509/acmetool/cert/prepare')
-rw-r--r--roles/x509/acmetool/cert/prepare/handlers/main.yml8
-rw-r--r--roles/x509/acmetool/cert/prepare/tasks/main.yml4
2 files changed, 11 insertions, 1 deletions
diff --git a/roles/x509/acmetool/cert/prepare/handlers/main.yml b/roles/x509/acmetool/cert/prepare/handlers/main.yml
index f3bb86f7..d31a956a 100644
--- a/roles/x509/acmetool/cert/prepare/handlers/main.yml
+++ b/roles/x509/acmetool/cert/prepare/handlers/main.yml
@@ -10,3 +10,11 @@
service:
name: "{{ x509_certificate_reload_service }}"
state: reloaded
+
+- name: restart services for x509 certificates
+ loop: "{{ x509_certificate_restart_services | default([]) }}"
+ loop_control:
+ loop_var: x509_certificate_restart_service
+ service:
+ name: "{{ x509_certificate_restart_service }}"
+ state: restarted
diff --git a/roles/x509/acmetool/cert/prepare/tasks/main.yml b/roles/x509/acmetool/cert/prepare/tasks/main.yml
index efba24e0..62f34d01 100644
--- a/roles/x509/acmetool/cert/prepare/tasks/main.yml
+++ b/roles/x509/acmetool/cert/prepare/tasks/main.yml
@@ -32,7 +32,9 @@
src: "../certs/{{ selfsigned_interim_cert_id }}"
dest: "/var/lib/acme/live/{{ acme_missing_hostname }}"
state: link
- notify: reload services for x509 certificates
+ notify:
+ - reload services for x509 certificates
+ - restart services for x509 certificates
- name: export paths to certificate files
set_fact: