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,

On Wednesday, December 28, 2016 at 3:53:30 PM UTC, Maish Saidel-Keesing 
wrote:
>
> 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!!
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/76869073-f77a-4f07-a4af-a2117aaf8597%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to