From 2937eba7c2cd4653d27d88a247baa844cb6d51c2 Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Sat, 28 Dec 2024 18:57:08 -0600 Subject: [PATCH] Only template configs if config variable is set Signed-off-by: Jason Rothstein --- tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/main.yml b/tasks/main.yml index d4362e0..7ee6f80 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -88,6 +88,7 @@ - name: 'ensure configurations' when: - ansible_system == 'Linux' + - http_vhost is defined - ensure_apache is defined - ensure_apache.template_list is defined - ensure_apache.template_list is iterable