community.windows.win_file_version – Get DLL or EXE file build version¶
Note
This plugin is part of the community.windows collection (version 1.3.0).
To install it use: ansible-galaxy collection install community.windows
.
To use it in a playbook, specify: community.windows.win_file_version
.
Parameters¶
Parameter | Choices/Defaults | Comments |
---|---|---|
path
path
/ required
|
File to get version.
Always provide absolute path.
|
See Also¶
See also
- ansible.windows.win_file
The official documentation on the ansible.windows.win_file module.
Examples¶
- name: Get acm instance version
community.windows.win_file_version:
path: C:\Windows\System32\cmd.exe
register: exe_file_version
- debug:
msg: '{{ exe_file_version }}'
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Sam Liu (@SamLiu79)