I'm working towards having an Ansible playbook to automatically set up AWS EC2 instances, an RDS database and deploy a Rails app to the EC2 instances.
I have managed to do the following:
Currently I still need to manually update the inventory file for step #2 based on the IP addresses that AWS provided after step #1.
How can I combine the 2 playbooks into 1 by automatically using the IP addresses given by AWS in the inventory file?
Borys Borysenko
DevOps
You need to use the
add_hostmodule to create in-memory inventory. There is great example (but for GCE).