ansible/ansible — pull request #2457 by robparrott (2013-03-19 18:01:46+00:00)
Title: invalidate group cache when adding a new group

I found that when using add_host module, the "groups" vars did not reflect the new group, even though "group_names" and "hostvars" did.

Upshot is that the Inventory._groups_list cache dictionary was not being updated.

Now works as expected. Please prioritize merge.

Thanks,
Rob