launch a EC2 deployment through Ansible

Hi All,

I was testing the Ansible ec2.py plugin to create an inventory of our EC2 instances, is there a way I could launch a full setup from Ansible without the need to manually boot every ec2 instance one by one and copy/paste their address in the inventory file ?

I would like to run a simple Ansible playbook that will launch a 3 tier deployment (db, web , load balancer) and once the servers have boot to start the configuration all done automatically.

Regards,
Nicolas.

Yes! See the add_host example in the AWS chapter of the documentation about how to add hosts and dynamically add them to inventory, and more about pulling inventory from AWS.