From d31d55357138ed7ce08c0cbed38b921a49fd83b6 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 --- cloud/ec2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/ec2 b/cloud/ec2 index ecf913ec1ab..a4414e8ede3 100644 --- a/cloud/ec2 +++ b/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 100e0e273484a08cd5e0d30ce6ff9121b278a36d 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 --- cloud/ec2 | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/cloud/ec2 b/cloud/ec2 index a4414e8ede3..461ba4d5674 100644 --- a/cloud/ec2 +++ b/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