Use linux details from remote-exec in another remote-exec

Hi all,

I have a question, I have 2 remote-execs, the first is connected via an ipaddress on a loadbalancer, so at that time I do not have the actual ip address, but I can get it thru a linux command (ofcourse). I do need the actual ip address of the Linux host in the connection of the second remote-exec. is this possible?