summaryrefslogtreecommitdiff
path: root/roles/x509/uacme/cert/prepare/templates
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/uacme/cert/prepare/templates
parentadd new role docker/registry (WIP) (diff)
x509: some daemons can't be reloaded and need to be restarted...
Diffstat (limited to 'roles/x509/uacme/cert/prepare/templates')
-rw-r--r--roles/x509/uacme/cert/prepare/templates/updated.sh.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/x509/uacme/cert/prepare/templates/updated.sh.j2 b/roles/x509/uacme/cert/prepare/templates/updated.sh.j2
index e981fd0f..6d58c8c4 100644
--- a/roles/x509/uacme/cert/prepare/templates/updated.sh.j2
+++ b/roles/x509/uacme/cert/prepare/templates/updated.sh.j2
@@ -27,6 +27,9 @@ mv "{{ file.dest }}.new" "{{ file.dest }}"
{% for service in (x509_certificate_reload_services | default([])) %}
systemctl reload "{{ service }}.service"
{% endfor %}
+{% for service in (x509_certificate_restart_services | default([])) %}
+systemctl restart "{{ service }}.service"
+{% endfor %}
{% if x509_certificate_renewal is defined and 'reload' in x509_certificate_renewal %}
{{ x509_certificate_renewal.reload | trim }}