Module - export_keypair
This module provides for the following ansible plugin:
export_keypair
Module Documentation
Export OpenStack Nova Keypair definition into an OS-Migrate YAML
Options
- auth
Required if 'cloud' parameter 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 keypair 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 Nova Keypair to export.
- user_id
ID of the owner of the Keypair, if the owner is different than the authenticated user (admin-only feature).
- 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 my_keypair into /opt/os-migrate/keypairs.yml
os_migrate.os_migrate.export_keypair:
cloud: source_cloud
path: /opt/os-migrate/keypairs.yml
name: my_keypair