Ansible 1.9.4, AWS Auto scaling "Launching a new EC2 instance. Status Reason: The parameter SecurityGroup is not recognized. "

Im trying to do an auto scaling group in AWS

Below is my script.

It runs and almost completes (it sets up lb, asg and lc in AWS) but times out with

“msg: Waited too long for new instances to become viable. Mon Nov 16 15:35:31 2015”

Under AWS “Activity History” on Auto Scaling Group i get

“Launching a new EC2 instance. Status Reason: The parameter SecurityGroup is not recognized. Launching EC2 instance failed.”

I have tried looking for that message with only 2 hits in all of google so its not a common error.

Anything im doing wrong in the below or any idea about the message?

Thanks

I think the issue was

security_groups: [‘http/https’] on ec2_lc

Changed to use ids though doco isnt very clear on this in either wording “A list of security groups into which instances should be found” or example [‘group1’, ‘group2’]
http://docs.ansible.com/ansible/ec2_lc_module.html