Add "block_device_mapping" parameter on EC2_AMI Amazon module (DOCUMENTATION) - upgraded
This commit is contained in:
parent
1e4bd62af5
commit
0b0d972998
1 changed files with 23 additions and 0 deletions
|
@ -69,6 +69,12 @@ options:
|
||||||
- Image ID to be deregistered.
|
- Image ID to be deregistered.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
|
device_mapping:
|
||||||
|
version_added: "1.9"
|
||||||
|
description:
|
||||||
|
- An optional list of devices with custom configurations (same block-device-mapping parameters)
|
||||||
|
required: false
|
||||||
|
default: null
|
||||||
delete_snapshot:
|
delete_snapshot:
|
||||||
description:
|
description:
|
||||||
- Whether or not to delete an AMI while deregistering it.
|
- Whether or not to delete an AMI while deregistering it.
|
||||||
|
@ -110,6 +116,23 @@ EXAMPLES = '''
|
||||||
name: newtest
|
name: newtest
|
||||||
register: instance
|
register: instance
|
||||||
|
|
||||||
|
# AMI Creation, with a custom root-device size and another EBS attached
|
||||||
|
- ec2_ami
|
||||||
|
aws_access_key: xxxxxxxxxxxxxxxxxxxxxxx
|
||||||
|
aws_secret_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||||
|
instance_id: i-xxxxxx
|
||||||
|
name: newtest
|
||||||
|
device_mapping:
|
||||||
|
- device_name: /dev/sda1
|
||||||
|
size: XXX
|
||||||
|
delete_on_termination: true
|
||||||
|
volume_type: gp2
|
||||||
|
- device_name: /dev/sdb
|
||||||
|
size: YYY
|
||||||
|
delete_on_termination: false
|
||||||
|
volume_type: gp2
|
||||||
|
register: instance
|
||||||
|
|
||||||
# Deregister/Delete AMI
|
# Deregister/Delete AMI
|
||||||
- ec2_ami:
|
- ec2_ami:
|
||||||
aws_access_key: xxxxxxxxxxxxxxxxxxxxxxx
|
aws_access_key: xxxxxxxxxxxxxxxxxxxxxxx
|
||||||
|
|
Loading…
Reference in a new issue