Get DLL or EXE file build version
- Get DLL or EXE file build version.
Parameter | Choices/Defaults | Comments |
---|---|---|
path
path
/ required
|
File to get version.
Always provide absolute path.
|
Note
- This module will always return no change.
.. seealso:: :ref:`ansible.windows.win_file_module` The official documentation on the **ansible.windows.win_file** module.
- 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 }}'
Common return values are documented here, the following are the fields unique to this module:
- Sam Liu (@SamLiu79)