From e025effc994a5b42b18c992b8729ceae021c9c01 Mon Sep 17 00:00:00 2001 From: Robb Wagoner Date: Thu, 11 Dec 2014 08:21:03 -0700 Subject: [PATCH] include all launch config properties in the return make all properties available when registering the result which is useful when wanting to launch a stand-alone instance based upon an existing Launch Config. --- lib/ansible/modules/cloud/amazon/ec2_lc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_lc.py b/lib/ansible/modules/cloud/amazon/ec2_lc.py index 3c292377a58..592d179a02b 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_lc.py +++ b/lib/ansible/modules/cloud/amazon/ec2_lc.py @@ -225,7 +225,8 @@ def create_launch_config(connection, module): module.exit_json(changed=changed, name=result.name, created_time=str(result.created_time), image_id=result.image_id, arn=result.launch_configuration_arn, - security_groups=result.security_groups, instance_type=instance_type) + security_groups=result.security_groups, instance_type=result.instance_type, + result=result) def delete_launch_config(connection, module):