win_disk_image: return all mount paths in return value (#44799)

This commit is contained in:
Jordan Borean 2018-08-30 16:25:45 +10:00 committed by GitHub
parent 78eb4724a0
commit 533656694e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 8 deletions

View file

@ -32,10 +32,15 @@ author:
RETURN = r'''
mount_path:
description: filesystem path where the target image is mounted
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: string
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:\' ]
'''
EXAMPLES = r'''
@ -48,7 +53,7 @@ EXAMPLES = r'''
- name: Run installer from mounted iso
win_package:
path: '{{ disk_image_out.mount_path }}setup\setup.exe'
path: '{{ disk_image_out.mount_paths[0] }}setup\setup.exe'
product_id: 35a4e767-0161-46b0-979f-e61f282fee21
state: present