|
|
@ -24,7 +24,7 @@
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
---
|
|
|
|
---
|
|
|
|
module: win_unzip
|
|
|
|
module: win_unzip
|
|
|
|
version_added: ""
|
|
|
|
version_added: "2.0"
|
|
|
|
short_description: Unzips compressed files on the Windows node
|
|
|
|
short_description: Unzips compressed files on the Windows node
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Unzips compressed files, and can force reboot (if needed, i.e. such as hotfixes). Has ability to recursively unzip files within the src zip file provided using Read-Archive and piping to Expand-Archive (Using PSCX). If the destination directory does not exist, it will be created before unzipping the file. If a .zip file is specified as src and recurse is true then PSCX will be installed. Specifying rm parameter will allow removal of the src file after extraction.
|
|
|
|
- Unzips compressed files, and can force reboot (if needed, i.e. such as hotfixes). Has ability to recursively unzip files within the src zip file provided using Read-Archive and piping to Expand-Archive (Using PSCX). If the destination directory does not exist, it will be created before unzipping the file. If a .zip file is specified as src and recurse is true then PSCX will be installed. Specifying rm parameter will allow removal of the src file after extraction.
|
|
|
@ -33,14 +33,10 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- File to be unzipped (provide absolute path)
|
|
|
|
- File to be unzipped (provide absolute path)
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
default: null
|
|
|
|
|
|
|
|
aliases: []
|
|
|
|
|
|
|
|
dest:
|
|
|
|
dest:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Destination of zip file (provide absolute path of directory). If it does not exist, the directory will be created.
|
|
|
|
- Destination of zip file (provide absolute path of directory). If it does not exist, the directory will be created.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
default: null
|
|
|
|
|
|
|
|
aliases: []
|
|
|
|
|
|
|
|
rm:
|
|
|
|
rm:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Remove the zip file, after unzipping
|
|
|
|
- Remove the zip file, after unzipping
|
|
|
@ -51,7 +47,6 @@ options:
|
|
|
|
- yes
|
|
|
|
- yes
|
|
|
|
- no
|
|
|
|
- no
|
|
|
|
default: false
|
|
|
|
default: false
|
|
|
|
aliases: []
|
|
|
|
|
|
|
|
recurse:
|
|
|
|
recurse:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Recursively expand zipped files within the src file.
|
|
|
|
- Recursively expand zipped files within the src file.
|
|
|
@ -62,14 +57,12 @@ options:
|
|
|
|
- false
|
|
|
|
- false
|
|
|
|
- yes
|
|
|
|
- yes
|
|
|
|
- no
|
|
|
|
- no
|
|
|
|
aliases: []
|
|
|
|
|
|
|
|
creates:
|
|
|
|
creates:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- If this file or directory exists the specified src will not be extracted.
|
|
|
|
- If this file or directory exists the specified src will not be extracted.
|
|
|
|
required: no
|
|
|
|
required: no
|
|
|
|
default: null
|
|
|
|
default: null
|
|
|
|
aliases: []
|
|
|
|
author: Phil Schwartz
|
|
|
|
author: Phil Schwartz
|
|
|
|
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
EXAMPLES = '''
|
|
|
|