Inheriting static group_var data with dynamic inventory?

Greets,

Assuming I’ve got the following defined in group_vars:foo.yml

Sorry, meant to say bar: baz is defined in group_vars/foo.yml

AQ (https://github.com/caredotcom/ansible-quartermaster) might be of interest.

                                      -Josh (jbs@care.com)

This email is intended for the person(s) to whom it is addressed and may contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, distribution, copying, or disclosure by any person other than the addressee(s) is strictly prohibited. If you have received this email in error, please notify the sender immediately by return email and delete the message and any attachments from your system.

Josh,

Thanks for the link but that’s not going to be a good fit. I’m trying to use the add_host module to dynamically alter group memberships of tagged instances in AWS. It would be great if anyone could provide an example of how this might be done? I know the currently accepted approach is to manually maintain these group relationships in static inventory files as per http://docs.ansible.com/ansible/intro_dynamic_inventory.html#static-groups-of-dynamic-groups but that makes me depressed.

Best,
Adam