|
|
@ -222,7 +222,7 @@ def create_instances(module, gce, instance_names):
|
|
|
|
"""Creates new instances. Attributes other than instance_names are picked
|
|
|
|
"""Creates new instances. Attributes other than instance_names are picked
|
|
|
|
up from 'module'
|
|
|
|
up from 'module'
|
|
|
|
|
|
|
|
|
|
|
|
module : AnsbileModule object
|
|
|
|
module : AnsibleModule object
|
|
|
|
gce: authenticated GCE libcloud driver
|
|
|
|
gce: authenticated GCE libcloud driver
|
|
|
|
instance_names: python list of instance names to create
|
|
|
|
instance_names: python list of instance names to create
|
|
|
|
|
|
|
|
|
|
|
@ -346,7 +346,7 @@ def main():
|
|
|
|
metadata = dict(),
|
|
|
|
metadata = dict(),
|
|
|
|
name = dict(),
|
|
|
|
name = dict(),
|
|
|
|
network = dict(default='default'),
|
|
|
|
network = dict(default='default'),
|
|
|
|
persistent_boot_disk = dict(choices=BOOLEANS, default=False),
|
|
|
|
persistent_boot_disk = dict(type='bool', choices=BOOLEANS, default=False),
|
|
|
|
state = dict(choices=['active', 'present', 'absent', 'deleted'],
|
|
|
|
state = dict(choices=['active', 'present', 'absent', 'deleted'],
|
|
|
|
default='present'),
|
|
|
|
default='present'),
|
|
|
|
tags = dict(type='list'),
|
|
|
|
tags = dict(type='list'),
|
|
|
|