get IP of instance to pass it as command arguement

Hello

I want to pass some arguments within a playbook but unsure on how to do it

Playbook here:
http://pastebin.com/Ga1L1hCa

The first part creates an Openstack instance, then it attaches a floating IP.
I want to grab the hostname and floating IP and use it in the 3rd task which is to create a DNS A record.

Appreciate the help!

you want to register the results of the first task

register: new_instance

then you can access the information returned in that variable, use
debug: var=new_instance to examine the structure.