ansible / ansible.builtin / v2.8.15 / module / win_file_version Get DLL or EXE file build version | "added in version" 2.1 of ansible.builtin" Authors: Sam Liu (@SamLiu79) preview | supported by communityansible.builtin.win_file_version (v2.8.15) — module
pip
Install with pip install ansible==2.8.15
Get DLL or EXE file build version.
- name: Get acm instance version win_file_version: path: C:\Windows\System32\cmd.exe register: exe_file_version
- debug: msg: '{{ exe_file_version }}'
path: description: - File to get version. - Always provide absolute path. required: true type: path
file_build_part: description: build number of the file. returned: no error type: str file_major_part: description: the major part of the version number. returned: no error type: str file_minor_part: description: the minor part of the version number of the file. returned: no error type: str file_private_part: description: file private part number. returned: no error type: str file_version: description: File version number.. returned: no error type: str path: description: file path returned: always type: str product_version: description: The version of the product this file is distributed with. returned: no error type: str