From 7c38e8a225a4a687e7c78c5cb63fa307bba523d4 Mon Sep 17 00:00:00 2001 From: "Amir H. Hajizamani" Date: Wed, 5 Feb 2014 15:12:41 +0000 Subject: [PATCH 1/2] Example should put instance_ids list in quotes for avoid YAML error --- library/cloud/ec2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cloud/ec2 b/library/cloud/ec2 index ecf913ec1a..a4414e8ede 100644 --- a/library/cloud/ec2 +++ b/library/cloud/ec2 @@ -327,7 +327,7 @@ local_action: local_action: module: ec2 state: 'absent' - instance_ids: {{ec2.instance_ids}} + instance_ids: '{{ ec2.instance_ids }}' # Start a few existing instances, run some tasks # and stop the instances From 843f4e7d7c13db5a057d464e4e071e305ca41671 Mon Sep 17 00:00:00 2001 From: "Amir H. Hajizamani" Date: Wed, 5 Feb 2014 15:14:44 +0000 Subject: [PATCH 2/2] Neaten up example YAML with 2-space indenting --- library/cloud/ec2 | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/library/cloud/ec2 b/library/cloud/ec2 index a4414e8ede..461ba4d567 100644 --- a/library/cloud/ec2 +++ b/library/cloud/ec2 @@ -338,18 +338,18 @@ local_action: connection: local vars: instance_ids: - - 'i-xxxxxx' - - 'i-xxxxxx' - - 'i-xxxxxx' + - 'i-xxxxxx' + - 'i-xxxxxx' + - 'i-xxxxxx' region: us-east-1 tasks: - name: Start the sandbox instances local_action: - module: ec2 - instance_ids: '{{ instance_ids }}' - region: '{{ region }}' - state: running - wait: True + module: ec2 + instance_ids: '{{ instance_ids }}' + region: '{{ region }}' + state: running + wait: True role: - do_neat_stuff - do_more_neat_stuff @@ -360,9 +360,9 @@ local_action: connection: local vars: instance_ids: - - 'i-xxxxxx' - - 'i-xxxxxx' - - 'i-xxxxxx' + - 'i-xxxxxx' + - 'i-xxxxxx' + - 'i-xxxxxx' region: us-east-1 tasks: - name: Stop the sanbox instances