From 61c63ae729a76d22ea15f6247296996987d332a0 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Wed, 28 Dec 2022 19:34:54 +0100 Subject: [PATCH] Do not use deprecated local_action --- system/base/logs/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/base/logs/tasks/main.yml b/system/base/logs/tasks/main.yml index afbe4a5..adea811 100644 --- a/system/base/logs/tasks/main.yml +++ b/system/base/logs/tasks/main.yml @@ -8,8 +8,8 @@ - block: - name: "identify logcheck ignore files" - local_action: - module: "ansible.builtin.stat" + delegate_to: "localhost" + ansible.builtin.stat: path: "{{ system_base_logs_ignore_dir }}/{{ item }}" register: system_base_logs_ignore_files_stat loop: "{{ [ansible_hostname, 'all'] | union(group_names) }}"