Module - validate_resource_files

This module provides for the following ansible plugin:

  • validate_resource_files

Module Documentation

Validate OS-Migrate YAML resource files.

Unique resource naming is validated across all files provided.

Options

paths

Resources YAML files to read.

Authors

OpenStack tenant migration tools (@os-migrate)

Example Tasks

- name: Read resources from /opt/os-migrate/networks.yml
  os_migrate.os_migrate.validate_resource_files:
    paths:
    - /opt/os-migrate/networks.yml
    - /opt/os-migrate/security_groups.yml
    - /opt/os-migrate/security_group_rules.yml
    - /opt/os-migrate/subnets.yml
  register: validation_results
- name: Debug-print validation results
  debug:
    var: validation_results