ansible/ansible — pull request #8009 by cchurch (2014-07-01 19:32:52+00:00)
Title: Add support for nested inventory groups with EC2

Without this change (which is still the default setting), all EC2 inventory groups are created in a flat namespace. This change adds additional parent groups to contain regions, instance types, key pairs, security groups and tags.

This change has already been incorporated into Tower 1.4.11 and later.

Example without nested groups:

* i-12345678
* us-east-1
* us-east-1c
* type_t1_micro
* key_foo
* security_group_default
* tag_name_webservers

Example with nested groups:

* instances
* i-12345678
* regions
* us-east-1
* us-east-1c
* types
* type_t1_micro
* keys
* key_foo
* security_groups
* security_group_default
* tags
* tag_name
* tag_name_webservers

Nested groups are also supported for RDS instances with similar parent groups as above, along with "rds_engines" and "rds_parameter_groups" parent groups.

I've also added RDS instance variables to ["_meta"]["hostvars"] which were previously missing.