Small rol to deploy a new AMI with a specific format
The role uses the EC2 module
Settable variables that are in defaults/main.yml.
ami
: dictionary containing information about the AMIname
: AMI nameregion
: AWS region
ec2_id
: AWS EC2 instance ID
The role outputs the next information
new_ami_id
: ID of the new AMI
It assumes you use the ec2 dynamic inventory
- hosts: localhost
connection: local
gather_facts: no
roles:
- role: create-ami
GPL