|
|
@ -808,13 +808,12 @@ def startstop_instances(module, ec2, instance_ids):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
module = AnsibleModule(
|
|
|
|
argument_spec = ec2_argument_spec()
|
|
|
|
argument_spec = dict(
|
|
|
|
argument_spec.update(dict(
|
|
|
|
key_name = dict(aliases = ['keypair']),
|
|
|
|
key_name = dict(aliases = ['keypair']),
|
|
|
|
id = dict(),
|
|
|
|
id = dict(),
|
|
|
|
group = dict(type='list'),
|
|
|
|
group = dict(type='list'),
|
|
|
|
group_id = dict(type='list'),
|
|
|
|
group_id = dict(type='list'),
|
|
|
|
region = dict(aliases=['aws_region', 'ec2_region'], choices=AWS_REGIONS),
|
|
|
|
|
|
|
|
zone = dict(aliases=['aws_zone', 'ec2_zone']),
|
|
|
|
zone = dict(aliases=['aws_zone', 'ec2_zone']),
|
|
|
|
instance_type = dict(aliases=['type']),
|
|
|
|
instance_type = dict(aliases=['type']),
|
|
|
|
image = dict(),
|
|
|
|
image = dict(),
|
|
|
@ -824,9 +823,6 @@ def main():
|
|
|
|
ramdisk = dict(),
|
|
|
|
ramdisk = dict(),
|
|
|
|
wait = dict(type='bool', default=False),
|
|
|
|
wait = dict(type='bool', default=False),
|
|
|
|
wait_timeout = dict(default=300),
|
|
|
|
wait_timeout = dict(default=300),
|
|
|
|
ec2_url = dict(),
|
|
|
|
|
|
|
|
ec2_secret_key = dict(aliases=['aws_secret_key', 'secret_key'], no_log=True),
|
|
|
|
|
|
|
|
ec2_access_key = dict(aliases=['aws_access_key', 'access_key']),
|
|
|
|
|
|
|
|
placement_group = dict(),
|
|
|
|
placement_group = dict(),
|
|
|
|
user_data = dict(),
|
|
|
|
user_data = dict(),
|
|
|
|
instance_tags = dict(type='dict'),
|
|
|
|
instance_tags = dict(type='dict'),
|
|
|
@ -839,6 +835,7 @@ def main():
|
|
|
|
volumes = dict(type='list'),
|
|
|
|
volumes = dict(type='list'),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
module = AnsibleModule(argument_spec=argument_spec)
|
|
|
|
|
|
|
|
|
|
|
|
ec2 = ec2_connect(module)
|
|
|
|
ec2 = ec2_connect(module)
|
|
|
|
|
|
|
|
|
|
|
|