Module - verify_profiles

This module provides for the following ansible plugin:

  • verify_profiles

Module Documentation

Validate that the profiles assigned have enough nodes available.

Options

nodes

A list of nodes

flavors

A dictionary of flavors

Authors

Brad P. Crochet

Example Tasks

- hosts: undercloud
  tasks:
  - check_flavors:
      flavors: '{{ lookup(''nova_flavors'', wantlist=True) }}'
      roles_info: '{{ lookup(''roles_info'', wantlist=True) }}'
    name: Collect the flavors
    register: flavor_result
  - name: Check the profiles
    verify_profiles:
      flavors: flavor_result.flavors
      nodes: '{{ lookup(''ironic_nodes'', wantlist=True) }}'