Documentation

iso_extract - Extract files from an ISO image.

New in version 2.3.

Synopsis

  • This module mounts an iso image in a temporary directory and extracts files from there to a given destination.

Options

parameter required default choices comments
dest
yes
The destination directory to extract files to.
files
yes
A list of files to extract from the image.
Extracting directories does not work.
image
yes
The ISO image to extract files from.

aliases: path, src

Examples

- 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

Notes

Note

  • Only the file hash (content) is taken into account for extracting files from the ISO image.

Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

Support

This module is maintained by those with core commit privileges

For more information on what this means please read Module Support

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.