Module - export_network

This module provides for the following ansible plugin:

  • export_network

Module Documentation

Export OpenStack network definition into an OS-Migrate YAML

Options

auth

Dictionary with parameters for chosen auth type.

Required if 'cloud' parameter 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.

path

Resources YAML file to where network will be serialized.

In case the resource file already exists, it must match the os-migrate version.

In case the resource of same type and name exists in the file, it will be replaced.

name

Name (or ID) of a Network to export.

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: Export mynetwork into /opt/os-migrate/networks.yml
  os_migrate.os_migrate.export_network:
    path: /opt/os-migrate/networks.yml
    name: mynetwork