From ff81aa11c069c87eb21a3f1e7f8b23102e6a675c Mon Sep 17 00:00:00 2001 From: "evanccnyc@users.noreply.github.com" Date: Thu, 17 Sep 2015 15:47:16 -0400 Subject: [PATCH] Fixing ec2_asg termination_policy If this isnt set, it wont launch the instances because it needs to default to "Default" despite what boto docs say. --- lib/ansible/modules/cloud/amazon/ec2_asg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_asg.py b/lib/ansible/modules/cloud/amazon/ec2_asg.py index 855aae1715f..88081316ba7 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_asg.py +++ b/lib/ansible/modules/cloud/amazon/ec2_asg.py @@ -800,7 +800,7 @@ def main(): health_check_type=dict(default='EC2', choices=['EC2', 'ELB']), default_cooldown=dict(type='int', default=300), wait_for_instances=dict(type='bool', default=True), - termination_policies=dict(type='list', default=None) + termination_policies=dict(type='list', default='Default') ), )