New in version 1.7.
Returns information about a Windows file
parameter | required | default | choices | comments |
---|---|---|---|---|
get_checksum (added in 2.1) |
no | True | Whether to return a checksum of the file (only sha1 currently supported) | |
get_md5 |
no | True | Whether to return the checksum sum of the file. As of Ansible 1.9 this is no longer a MD5, but a SHA1 instead. | |
path |
yes | The full path of the file/object to get the facts of; both forward and back slashes are accepted. |
# Obtain information about a file - win_stat: path=C:\foo.ini register: file_info - debug: var=file_info
For more information on what this means please read Core Modules
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.