From 85f2ce4a2ce3a109b2e84fcb166abf5f9bd89ad2 Mon Sep 17 00:00:00 2001 From: Daniel Pawlik Date: Fri, 30 Jan 2026 15:06:15 +0100 Subject: [PATCH] [cifmw_helpers] Remove tempfile after including file in cifmw_helpers There is a bug, that when include_file is used, it creates a temporary directory, but after all is done, it is not removed, because temporary dir was done using delegation, and removing without it. By adding delegation, the temporary dir which is created also on delegated host, should be available and can be removed. Signed-off-by: Daniel Pawlik --- roles/cifmw_helpers/tasks/include_file.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/cifmw_helpers/tasks/include_file.yml b/roles/cifmw_helpers/tasks/include_file.yml index 1e239ebdf..1501cec52 100644 --- a/roles/cifmw_helpers/tasks/include_file.yml +++ b/roles/cifmw_helpers/tasks/include_file.yml @@ -49,3 +49,4 @@ ansible.builtin.file: path: "{{ _tmp_dir.path }}" state: absent + delegate_to: localhost