From c9a5b2e9ccb59926760bc1d93c83ac121a36ad13 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Wed, 28 Dec 2022 19:10:33 +0100 Subject: [PATCH] Unroll local_action --- system/base/logs/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/base/logs/tasks/main.yml b/system/base/logs/tasks/main.yml index 3a1e425..afbe4a5 100644 --- a/system/base/logs/tasks/main.yml +++ b/system/base/logs/tasks/main.yml @@ -8,7 +8,9 @@ - block: - name: "identify logcheck ignore files" - local_action: stat path="{{ system_base_logs_ignore_dir }}/{{ item }}" + local_action: + module: "ansible.builtin.stat" + path: "{{ system_base_logs_ignore_dir }}/{{ item }}" register: system_base_logs_ignore_files_stat loop: "{{ [ansible_hostname, 'all'] | union(group_names) }}"