From f63db6ce6ba45d75ed86ea425b62b4145a0e0d9f Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Mon, 19 Jul 2021 16:45:35 +0100 Subject: [PATCH] Logic fix --- tasks/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/config.yml b/tasks/config.yml index 4a22b7f..aae0e94 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -101,7 +101,7 @@ common_name: "{{ inventory_hostname }}" when: - - ( "md" not in apache_mods_enabled ) or ( not apache_cert.stat.exists ) + - ( "md" not in apache_mods_enabled ) or ( apache_cert is defined and 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