New in version 1.6.
Removed in Ansible: | |
---|---|
version: 2.2 | |
Why: | Various AWS modules have been combined and replaced with ec2_ami_facts. |
Alternative: | Use ec2_ami_find instead. |
Parameter |
Choices/Defaults |
Comments |
---|---|---|
arch
|
|
CPU architecture
|
distro
required |
|
Linux distribution (e.g.,
ubuntu ) |
region
|
|
EC2 region
|
release
required |
|
short name of the release (e.g.,
precise ) |
store
|
|
Back-end store for instance
|
stream
|
|
Type of release.
|
virt
|
|
virutalization type
|
- name: Launch an Ubuntu 12.04 (Precise Pangolin) EC2 instance
hosts: 127.0.0.1
connection: local
tasks:
- name: Get the Ubuntu precise AMI
ec2_ami_search:
distro: ubuntu
release: precise
region: us-west-1
store: instance-store
register: ubuntu_image
- name: Start the EC2 instance
ec2:
image: "{{ ubuntu_image.ami }}"
instance_type: m1.small
key_name: mykey
This module is flagged as deprecated and will be removed in version { deprecated[‘removed_in’] | default(‘’) | string | convert_symbols_to_format }@. For more information see DEPRECATED.
Hint
If you notice any issues in this documentation you can edit this document to improve it.