Note
This plugin is part of the community.general collection (version 3.8.1).
You might already have this collection installed if you are using the ansible
package. It is not included in ansible-core
. To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.iso_extract
.
The below requirements are needed on the host that executes this module.
Parameter | Choices/Defaults | Comments |
---|---|---|
dest path / required | The destination directory to extract files to. | |
executable path | The path to the 7z executable to use for extracting files from the ISO.If not provided, it will assume the value 7z . | |
files list / elements=string / required | A list of files to extract from the image. Extracting directories does not work. | |
force boolean |
| 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. |
image path / 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 community.general.iso_extract: image: /tmp/rear-test.iso dest: /tmp/virt-rear/ files: - isolinux/kernel - isolinux/initrd.cgz
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/iso_extract_module.html