From 3267d40ff2a61ee92a10f3122d48511cf1a225a8 Mon Sep 17 00:00:00 2001 From: Eric Johnson Date: Tue, 19 Nov 2013 22:30:22 +0000 Subject: [PATCH] fixes #4954 plus updates for gcutil/v1beta16 tests --- cloud/gce | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cloud/gce b/cloud/gce index d0eb474f8c7..cfc5811acf6 100644 --- a/cloud/gce +++ b/cloud/gce @@ -121,13 +121,13 @@ EXAMPLES = ''' zone: us-central1-a tasks: - name: Launch instances - local_action: gce instance_names=${names} machine_type=${machine_type} - image=${image} zone=${zone} + local_action: gce instance_names={{names}} machine_type={{machine_type}} + image={{image}} zone={{zone}} register: gce - name: Wait for SSH to come up - local_action: wait_for host=${item.public_ip} port=22 delay=10 + local_action: wait_for host={{item.public_ip}} port=22 delay=10 timeout=60 state=started - with_items: ${gce.instance_data} + with_items: {{gce.instance_data}} - name: Configure instance(s) hosts: launched @@ -144,7 +144,7 @@ EXAMPLES = ''' local_action: module: gce state: 'absent' - instance_names: ${gce.instance_names} + instance_names: {{gce.instance_names}} ''' @@ -211,8 +211,8 @@ def get_instance_info(inst): 'metadata': metadata, 'name': inst.name, 'network': netname, - 'private_ip': inst.private_ip[0], - 'public_ip': inst.public_ip[0], + 'private_ip': inst.private_ips[0], + 'public_ip': inst.public_ips[0], 'status': ('status' in inst.extra) and inst.extra['status'] or None, 'tags': ('tags' in inst.extra) and inst.extra['tags'] or [], 'zone': ('zone' in inst.extra) and inst.extra['zone'].name or None, @@ -344,7 +344,7 @@ def main(): instance_names = dict(), machine_type = dict(default='n1-standard-1'), metadata = dict(), - name = dict(default='gce'), + name = dict(), network = dict(default='default'), persistent_boot_disk = dict(type='bool', choices=BOOLEANS, default=False), state = dict(choices=['active', 'present', 'absent', 'deleted'],