Do not use deprecated local_action
This commit is contained in:
parent
c9a5b2e9cc
commit
61c63ae729
@ -8,8 +8,8 @@
|
|||||||
- block:
|
- block:
|
||||||
|
|
||||||
- name: "identify logcheck ignore files"
|
- name: "identify logcheck ignore files"
|
||||||
local_action:
|
delegate_to: "localhost"
|
||||||
module: "ansible.builtin.stat"
|
ansible.builtin.stat:
|
||||||
path: "{{ system_base_logs_ignore_dir }}/{{ item }}"
|
path: "{{ system_base_logs_ignore_dir }}/{{ item }}"
|
||||||
register: system_base_logs_ignore_files_stat
|
register: system_base_logs_ignore_files_stat
|
||||||
loop: "{{ [ansible_hostname, 'all'] | union(group_names) }}"
|
loop: "{{ [ansible_hostname, 'all'] | union(group_names) }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user