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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| path | string | yes | Path on the target Windows filesystem | |
| get_checksum | bool | true | Calculate a file checksum | |
| get_size | bool | true | Calculate file or recursive directory size | |
| checksum_algorithm | string | sha1 | Checksum algorithm | |
| follow | bool | false | Follow symbolic links and junctions to their final target |
Example
yaml
- name: Inspect a Windows path
ansible.windows.win_stat:
path: 'C:\Windows\Temp'