New in version 2.3.
The below requirements are needed on the host that executes this module.
Parameter | Choices/Defaults | Comments |
---|---|---|
dest
required |
The destination directory to extract files to.
|
|
executable
(added in 2.4) |
Default: 7z
|
The path to the
7z executable to use for extracting files from the ISO. |
files
required |
A list of files to extract from the image.
Extracting directories does not work.
|
|
force
(added in 2.4) |
|
If
yes , which will replace the remote file when contents are different than the source.If
no , the file will only be extracted and copied if the destination does not already exist.aliases: thirsty |
image
required |
The ISO image to extract files from.
aliases: path, src |
Note
force=no
, only checks the presence of the file.mount
and umount
commands only, requiring root access. This is no longer needed with the introduction of 7zip for extraction.- name: Extract kernel and ramdisk from a LiveCD
iso_extract:
image: /tmp/rear-test.iso
dest: /tmp/virt-rear/
files:
- isolinux/kernel
- isolinux/initrd.cgz
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
Hint
If you notice any issues in this documentation you can edit this document to improve it.