From 8a2e8964a9e1673be63e8f8599e8b368494634c4 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 10 Jun 2018 16:28:38 +0100 Subject: [PATCH] tests: import gce.yml --- tests/ansible/gcloud/gce.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/ansible/gcloud/gce.yml diff --git a/tests/ansible/gcloud/gce.yml b/tests/ansible/gcloud/gce.yml new file mode 100644 index 00000000..e3f64c23 --- /dev/null +++ b/tests/ansible/gcloud/gce.yml @@ -0,0 +1,11 @@ + +- hosts: localhost + tasks: + - command: date +%Y%m%d-%H%M%S + register: out + + - set_fact: + instance_name: "controller-{{out.stdout}}" + + - command: > + gcloud compute instances create {{instance_name}} --can-ip-forward --machine-type=n1-standard-8 --preemptible --scopes=compute-ro --image-project=debian-cloud --image-family=debian-9