New in version 1.6.
Use ec2_ami_find instead.
ami
, aki
, ari
, serial
, tag
null
.{"ami": "ami-69f5a900", "changed": false, "aki": "aki-88aa75e1", "tag": "release", "ari": null, "serial": "20131024"}
parameter | required | default | choices | comments |
---|---|---|---|---|
arch |
no | amd64 |
|
CPU architecture |
distro |
yes |
|
Linux distribution (e.g., ubuntu ) | |
region |
no | us-east-1 |
|
EC2 region |
release |
yes | short name of the release (e.g., precise ) | ||
store |
no | ebs |
|
Back-end store for instance |
stream |
no | server |
|
Type of release. |
virt |
no | paravirtual |
|
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
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.