Module - import_image

This module provides for the following ansible plugin:

  • import_image

Module Documentation

Import OpenStack image from an OS-Migrate YAML structure

Options

auth:

Required if 'cloud' param is not used.

auth_type:

Auth type plugin for OpenStack. Can be omitted if using password authentication.

region_name:

OpenStack region name. Can be omitted if using default region.

data:

Data structure with image parameters as loaded from OS-Migrate YAML file.

filters:

Options for filtering existing resources to be looked up, e.g. by project.

blob_path:

Path where the image blob content will be saved.

In case the file already exists, it is assumed that the export was already performed and the module doesn't overwrite it.

availability_zone:

Availability zone.

cloud:

Cloud from clouds.yaml to use.

Required if 'auth' parameter is not used.

Authors

:

OpenStack tenant migration tools (@os-migrate)

Example Tasks

- name: Import myimage into /opt/os-migrate/images.yml
  os_migrate.os_migrate.import_image:
    auth: {}
    data:
    - type: openstack.image.Image
      params:
        name: my_image
    blob_path: /path/to/image_blob