You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See the latest Ansible documentation.
win_disk_image - Manage ISO/VHD/VHDX mounts on Windows hosts¶
Manages mount behavior for a specified ISO, VHD, or VHDX image on a Windows host. When state is present, the image will be mounted under a system-assigned drive letter, which will be returned in the mount_path value of the module result. Requires Windows 8+ or Windows Server 2012+.
# ensure an iso is mounted-win_disk_image:image_path:C:\install.isostate:presentregister:disk_image_out# run installer from mounted iso-win_package:path:'{{disk_image_out.mount_path}}setup\setup.exe'product_id:'35a4e767-0161-46b0-979f-e61f282fee21'state:present# unmount iso-win_disk_image:image_path:C:\install.isostate:absent
For more information about Red Hat’s this support of this module, please
refer to this knowledge base article<https://access.redhat.com/articles/rhel-top-support-policies>