Module - import_security_group_rule

This module provides for the following ansible plugin:

  • import_security_group_rule

Module Documentation

Import OpenStack security group from an OS-Migrate YAML structure

Options

auth

Required if 'cloud' param 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 the security group rule parameters as loaded from OS-Migrate YAML file.

filters

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

availability_zone

Availability zone.

cloud

Clouds resource from clouds.yml

Required if 'auth' param not used.

Authors

OpenStack tenant migration tools (@os-migrate)

Example Tasks

- name: Import mysecgrouprule into /opt/os-migrate/security_group_rule.yml
  os_migrate.os_migrate.import_security_group_rule:
    cloud: source_cloud
    data:
    - type: openstack.security_group_rule
      params:
        name: my_secgrouprule