From 7e267461b7e8b04e0919ab07dcb89168d35ff8b5 Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Mon, 19 Jul 2021 16:41:30 +0100 Subject: [PATCH] Tweak for mod_md --- tasks/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/config.yml b/tasks/config.yml index 39e1586..4a22b7f 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -101,7 +101,7 @@ common_name: "{{ inventory_hostname }}" when: - - ( not apache_cert.stat.exists ) + - ( "md" not in apache_mods_enabled ) or ( not apache_cert.stat.exists ) - ( "ssl" in apache_mods_enabled ) - ( "le" in apache_conf_enabled ) - ( common_name is defined ) and ( common_name == inventory_hostname ) -- GitLab