From 3547927d5a46be8f3c12d15bcaa3d425773ff5e9 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Tue, 19 Nov 2019 13:04:21 +0100 Subject: [PATCH] acme/certificate: Added support for custom reload cmd --- roles/acme/certificate/defaults/main.yml | 2 ++ roles/acme/certificate/tasks/main.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/acme/certificate/defaults/main.yml b/roles/acme/certificate/defaults/main.yml index a92c3ab..7759c46 100644 --- a/roles/acme/certificate/defaults/main.yml +++ b/roles/acme/certificate/defaults/main.yml @@ -3,3 +3,5 @@ acme_certificate_prefix: "{{ acme_certificates_directory }}/{{ domain }}" acme_certificate_location: "{{ acme_certificate_prefix }}.crt" acme_key_location: "{{ acme_certificate_prefix }}.key" + +reload_command: "systemctl force-reload nginx" diff --git a/roles/acme/certificate/tasks/main.yml b/roles/acme/certificate/tasks/main.yml index bad7a12..6fed5af 100644 --- a/roles/acme/certificate/tasks/main.yml +++ b/roles/acme/certificate/tasks/main.yml @@ -27,7 +27,7 @@ --domain "{{ domain | quote }}" --key-file "{{ acme_key_location | quote }}" --fullchain-file "{{ acme_certificate_location | quote }}" - --reloadcmd "systemctl force-reload nginx" + --reloadcmd "{{ reload_command }}" args: chdir: "{{ acme_installation_directory }}" creates: "{{ acme_key_location }}"