Managing an ec2 instance after creation

Good afternoon all.

I am trying to understand the flow of this will work - still not clear to me.

I would like to provision an ec2 instance with ansible.

Once that instance is created - I would like to continue to configure it using ansible directly - not through the ec2 modules.

Provisioning the instance is pretty straight forward.
My question is how do I get the information retrieved from that play (for example the elastic IP address - assuming it has a public IP) and then use that further to configure the instance (as it is not possible to do that by passing all the information through user_data)

Thanks in advance and happy holidays to you all!!

Hi there

you can add the IP of the instance you created to a new group.

http://docs.ansible.com/ansible/add_host_module.html

Then run the ansible tasks/roles you require against your newly created group.

Hope that helps.

James,