ansible/ansible — pull request #7653 by evanccopengeo (2014-06-03 18:28:28+00:00)
Title: ec2_group: Fix for 500 error when creating new security groups

Amazon will sometimes not propagate the creation of the new security group fast enough, causing the ansible module to error out with a 500.

This fixes that problem by checking until the security group has propagated and then running:

group = ec2.get_all_security_groups(group_ids=(group.id,))[0]