Skip to content

Instantly share code, notes, and snippets.

@pixie79
Created July 2, 2014 15:08
Show Gist options
  • Save pixie79/4f1d0e15bbdd444a39a4 to your computer and use it in GitHub Desktop.
Save pixie79/4f1d0e15bbdd444a39a4 to your computer and use it in GitHub Desktop.
- name: Create instances
hosts: localhost
tasks:
- name: Launch instances
local_action: gce instance_names=dcom-1-rc
machine_type=n1-highcpu-2
image=backports-debian-7-wheezy
zone=europe-west1-b
metadata='{"dc":"eu"}'
project_id=XXX
pem_file=/opt/ansible/.keys/pkey.pem
service_account_email=XXX.gserviceaccount.com
register: gce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment