Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/windows/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/windows/win_disk_image.pyo

�
�Udac@s4idd6dgd6dd6ZdZdZdZd	S(
s1.1tmetadata_versiontpreviewtstatustcoretsupported_bysD
module: win_disk_image
short_description: Manage ISO/VHD/VHDX mounts on Windows hosts
version_added: '2.3'
description:
     - 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+.
options:
  image_path:
    description:
      - Path to an ISO, VHD, or VHDX image on the target Windows host (the file cannot reside on a network share)
    type: str
    required: yes
  state:
    description:
      - Whether the image should be present as a drive-letter mount or not.
    type: str
    choices: [ absent, present ]
    default: present
author:
    - Matt Davis (@nitzmahone)
s�
# Run installer from mounted ISO, then unmount
- name: Ensure an ISO is mounted
  win_disk_image:
    image_path: C:\install.iso
    state: present
  register: disk_image_out

- name: Run installer from mounted ISO
  win_package:
    path: '{{ disk_image_out.mount_paths[0] }}setup\setup.exe'
    product_id: 35a4e767-0161-46b0-979f-e61f282fee21
    state: present

- name: Unmount ISO
  win_disk_image:
    image_path: C:\install.iso
    state: absent
s}
mount_path:
    description: Filesystem path where the target image is mounted, this has been deprecated in favour of C(mount_paths).
    returned: when C(state) is C(present)
    type: str
    sample: F:\
mount_paths:
    description: A list of filesystem paths mounted from the target image.
    returned: when C(state) is C(present)
    type: list
    sample: [ 'E:\', 'F:\' ]
N(tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURN(((sJ/usr/lib/python2.7/site-packages/ansible/modules/windows/win_disk_image.pyt<module>s





Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]