From b3e216ed3bd10ecc9efdf5832ce07ffc589c948d Mon Sep 17 00:00:00 2001 From: "Paulo E. Castro" Date: Wed, 29 May 2024 19:37:03 +0100 Subject: [PATCH] Run conditionally on nginx_config_cleanup_files or nginx_config_cleanup_paths. --- tasks/config/cleanup-config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/config/cleanup-config.yml b/tasks/config/cleanup-config.yml index 4a6dfbc1..c8783c85 100644 --- a/tasks/config/cleanup-config.yml +++ b/tasks/config/cleanup-config.yml @@ -14,3 +14,4 @@ state: absent loop: "{{ nginx_config_files['results'] | default('') | map(attribute='files') | sum(start=[]) | map(attribute='path') | list + nginx_config_cleanup_files | default('') | list }}" notify: (Handler - NGINX Config) Run NGINX + when: nginx_config_cleanup_files is defined or nginx_config_cleanup_paths is defined