tests: import gce.yml

This commit is contained in:
David Wilson 2018-06-10 16:28:38 +01:00
parent 079dc95aef
commit 8a2e8964a9
1 changed files with 11 additions and 0 deletions

View File

@ -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