ansible.builtin.iso_extract (v2.3.3.0-1) — module

Extract files from an ISO image.

| "added in version" 2.3 of ansible.builtin"

Authors: Jeroen Hoekx (@jhoekx), Matt Robinson (@ribbons)

preview | supported by core

Install Ansible via pip

Install with pip install ansible==2.3.3.0.post1

Description

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

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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

Inputs

    
dest:
    description:
    - The destination directory to extract files to.
    required: true

files:
    description:
    - A list of files to extract from the image.
    - Extracting directories does not work.
    required: true

image:
    aliases:
    - path
    - src
    description:
    - The ISO image to extract files from.
    required: true