Class: Ansible::Ruby::Modules::Win_disk_image

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/windows/win_disk_image.rb

Overview

Manages mount behavior for a specified ISO, VHD, or VHDX image on a Windows host. When C(state) is C(present), the image will be mounted under a system-assigned drive letter, which will be returned in the C(mount_path) value of the module result. Requires Windows 8+ or Windows Server 2012+.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#image_pathString

Returns Path to an ISO, VHD, or VHDX image on the target Windows host (the file cannot reside on a network share).

Returns:

  • (String)

    Path to an ISO, VHD, or VHDX image on the target Windows host (the file cannot reside on a network share)



12
# File 'lib/ansible/ruby/modules/generated/windows/win_disk_image.rb', line 12

attribute :image_path

#state:absent, ...

Returns Whether the image should be present as a drive-letter mount or not.

Returns:

  • (:absent, :present, nil)

    Whether the image should be present as a drive-letter mount or not.



16
# File 'lib/ansible/ruby/modules/generated/windows/win_disk_image.rb', line 16

attribute :state