Only template configs if config variable is set

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
Jason Rothstein 2024-12-28 18:57:08 -06:00
parent 9d78bd48b5
commit 2937eba7c2
Signed by: jmrothst
GPG Key ID: 741BF3C536829D46

View File

@ -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