ansible/ansible-modules-core — pull request #387 by johnpbatty (2014-11-25 09:38:07+00:00)
Title: Add new flavor_name parameter

[Resubmitting a change that I originally submitted in #315, but where I screwed up by using the wrong git branch...]

Allow the instance flavor to be specified by name rather than id.

Specifying objects by name is much more human-friendly and portable
between systems than specifying by id.

The nova_compute module already allows images to be specified by name
or id, so this is just providing equivalent function for flavors.

OpenStack does not (unfortunately) enforce that names are unique.
However, any users who have the same name for different flavors are
asking for trouble! If there are multiple flavors with the same name,
the first one returned by nova.flavors.list() is used.