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, developing_test_pr and Developing Modules.
© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/win_stat_module.html