From 52855c9e3f418b985a07d92684368721ecb0a6c6 Mon Sep 17 00:00:00 2001 From: Dan Guido Date: Tue, 16 Aug 2016 00:03:26 -0400 Subject: [PATCH] Use the right language for GCE --- algo | 2 +- roles/cloud-gce/tasks/main.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/algo b/algo index 326b367..769c6b3 100755 --- a/algo +++ b/algo @@ -13,7 +13,7 @@ algo_provisioning () { What provider would you like to use? 1. DigitalOcean 2. Amazon EC2 - 3. Google Cloud Engine + 3. Google Compute Engine 4. Remote installation (install to existing Ubuntu server) Enter the number of your desired provider diff --git a/roles/cloud-gce/tasks/main.yml b/roles/cloud-gce/tasks/main.yml index b8957b1..62f5540 100644 --- a/roles/cloud-gce/tasks/main.yml +++ b/roles/cloud-gce/tasks/main.yml @@ -2,7 +2,7 @@ credentials_file_lookup: "{{ lookup('file', '{{ credentials_file }}') }}" ssh_public_key_lookup: "{{ lookup('file', '{{ ssh_public_key }}') }}" -- name: "Creating a droplet..." +- name: "Creating a new instance..." gce: instance_names: "{{ server_name }}" zone: "{{ zones[zone] }}" @@ -14,7 +14,7 @@ metadata: '{"sshKeys":"root:{{ ssh_public_key_lookup }}"}' register: google_vm -- name: Add the droplet to an inventory group +- name: Add the instance to an inventory group add_host: name: "{{ google_vm.instance_data[0].public_ip}}" groups: vpn-host @@ -35,5 +35,5 @@ credentials_file: "{{ credentials_file }}" project_id: "{{ credentials_file_lookup.project_id }}" -- name: Wait for SSH to become available +- name: Waiting for SSH to become available local_action: "wait_for port=22 host={{ google_vm.instance_data[0].public_ip }} timeout=320"