У меня есть задача ниже Ansible (2.9.6), чтобы перечислить файлы на windows машинах, на некоторых машинах она работает. для какого-то сервера он дает предупреждение, не перечисляя никаких файлов. любая помощь в решении этой проблемы?
---
- name: getdir
hosts: all
gather_facts: false
tasks:
- name: Find direcotry
win_find:
paths: d:\
recurse: no
get_checksum: no
register: result
- name: Find direcotry
debug:
msg: "output {{ result }}"
Пример вывода:
TASK [Find direcotry] ************************************************************************************************************************************************************************
[WARNING]: win_find failed to check some files, these files were ignored and will not be part of the result output
ASK [Find direcotry] ************************************************************************************************************************************************************************
ok: [host01] => {
"msg": "output {u'files': [], u'warnings': [u'win_find failed to check some files, these files were ignored and will not be part of the result output'], u'changed': False, 'failed': False, u'examined': 0, u'matched': 0}"
}