|
|
|
@ -32,77 +32,65 @@ options:
|
|
|
|
|
- image string to use for the instance
|
|
|
|
|
required: false
|
|
|
|
|
default: "debian-7"
|
|
|
|
|
aliases: []
|
|
|
|
|
instance_names:
|
|
|
|
|
description:
|
|
|
|
|
- a comma-separated list of instance names to create or destroy
|
|
|
|
|
required: false
|
|
|
|
|
default: null
|
|
|
|
|
aliases: []
|
|
|
|
|
machine_type:
|
|
|
|
|
description:
|
|
|
|
|
- machine type to use for the instance, use 'n1-standard-1' by default
|
|
|
|
|
required: false
|
|
|
|
|
default: "n1-standard-1"
|
|
|
|
|
aliases: []
|
|
|
|
|
metadata:
|
|
|
|
|
description:
|
|
|
|
|
- a hash/dictionary of custom data for the instance; '{"key":"value",...}'
|
|
|
|
|
required: false
|
|
|
|
|
default: null
|
|
|
|
|
aliases: []
|
|
|
|
|
service_account_email:
|
|
|
|
|
version_added: 1.5.1
|
|
|
|
|
version_added: "1.5.1"
|
|
|
|
|
description:
|
|
|
|
|
- service account email
|
|
|
|
|
required: false
|
|
|
|
|
default: null
|
|
|
|
|
aliases: []
|
|
|
|
|
service_account_permissions:
|
|
|
|
|
version_added: 2.0
|
|
|
|
|
version_added: "2.0"
|
|
|
|
|
description:
|
|
|
|
|
- service account permissions (see U(https://cloud.google.com/sdk/gcloud/reference/compute/instances/create), --scopes section for detailed information)
|
|
|
|
|
required: false
|
|
|
|
|
default: null
|
|
|
|
|
aliases: []
|
|
|
|
|
choices: ["bigquery", "cloud-platform", "compute-ro", "compute-rw", "computeaccounts-ro", "computeaccounts-rw", "datastore", "logging-write", "monitoring", "sql", "sql-admin", "storage-full", "storage-ro", "storage-rw", "taskqueue", "userinfo-email"]
|
|
|
|
|
pem_file:
|
|
|
|
|
version_added: 1.5.1
|
|
|
|
|
version_added: "1.5.1"
|
|
|
|
|
description:
|
|
|
|
|
- path to the pem file associated with the service account email
|
|
|
|
|
required: false
|
|
|
|
|
default: null
|
|
|
|
|
aliases: []
|
|
|
|
|
project_id:
|
|
|
|
|
version_added: 1.5.1
|
|
|
|
|
version_added: "1.5.1"
|
|
|
|
|
description:
|
|
|
|
|
- your GCE project ID
|
|
|
|
|
required: false
|
|
|
|
|
default: null
|
|
|
|
|
aliases: []
|
|
|
|
|
name:
|
|
|
|
|
description:
|
|
|
|
|
- identifier when working with a single instance
|
|
|
|
|
required: false
|
|
|
|
|
aliases: []
|
|
|
|
|
network:
|
|
|
|
|
description:
|
|
|
|
|
- name of the network, 'default' will be used if not specified
|
|
|
|
|
required: false
|
|
|
|
|
default: "default"
|
|
|
|
|
aliases: []
|
|
|
|
|
persistent_boot_disk:
|
|
|
|
|
description:
|
|
|
|
|
- if set, create the instance with a persistent boot disk
|
|
|
|
|
required: false
|
|
|
|
|
default: "false"
|
|
|
|
|
aliases: []
|
|
|
|
|
disks:
|
|
|
|
|
description:
|
|
|
|
|
- a list of persistent disks to attach to the instance; a string value gives the name of the disk; alternatively, a dictionary value can define 'name' and 'mode' ('READ_ONLY' or 'READ_WRITE'). The first entry will be the boot disk (which must be READ_WRITE).
|
|
|
|
|
required: false
|
|
|
|
|
default: null
|
|
|
|
|
aliases: []
|
|
|
|
|
version_added: "1.7"
|
|
|
|
|
state:
|
|
|
|
|
description:
|
|
|
|
@ -110,40 +98,34 @@ options:
|
|
|
|
|
required: false
|
|
|
|
|
default: "present"
|
|
|
|
|
choices: ["active", "present", "absent", "deleted"]
|
|
|
|
|
aliases: []
|
|
|
|
|
tags:
|
|
|
|
|
description:
|
|
|
|
|
- a comma-separated list of tags to associate with the instance
|
|
|
|
|
required: false
|
|
|
|
|
default: null
|
|
|
|
|
aliases: []
|
|
|
|
|
zone:
|
|
|
|
|
description:
|
|
|
|
|
- the GCE zone to use
|
|
|
|
|
required: true
|
|
|
|
|
default: "us-central1-a"
|
|
|
|
|
aliases: []
|
|
|
|
|
ip_forward:
|
|
|
|
|
version_added: "1.9"
|
|
|
|
|
description:
|
|
|
|
|
- set to true if the instance can forward ip packets (useful for gateways)
|
|
|
|
|
required: false
|
|
|
|
|
default: "false"
|
|
|
|
|
aliases: []
|
|
|
|
|
external_ip:
|
|
|
|
|
version_added: "1.9"
|
|
|
|
|
description:
|
|
|
|
|
- type of external ip, ephemeral by default
|
|
|
|
|
required: false
|
|
|
|
|
default: "ephemeral"
|
|
|
|
|
aliases: []
|
|
|
|
|
disk_auto_delete:
|
|
|
|
|
version_added: "1.9"
|
|
|
|
|
description:
|
|
|
|
|
- if set boot disk will be removed after instance destruction
|
|
|
|
|
required: false
|
|
|
|
|
default: "true"
|
|
|
|
|
aliases: []
|
|
|
|
|
|
|
|
|
|
requirements:
|
|
|
|
|
- "python >= 2.6"
|
|
|
|
|