PARALLAX

win_stat

Read Windows file metadata and checksums

Collection: ansible.windows

Full Name: parallax.windows.win_stat

Aliases: ansible.windows.win_stat, win_stat

Synopsis

Read Windows file metadata and checksums

Parameters

NameTypeRequiredDefaultDescription
pathstringyesPath on the target Windows filesystem
get_checksumbooltrueCalculate a file checksum
get_sizebooltrueCalculate file or recursive directory size
checksum_algorithmstringsha1Checksum algorithm
followboolfalseFollow symbolic links and junctions to their final target

Example

yaml
- name: Inspect a Windows path
  ansible.windows.win_stat:
    path: 'C:\Windows\Temp'
Search
    ↑ ↓ move↵ openesc close