Using set-up facts before doing tasks

Hello fellas.

I’m new 'bout Ansible and English as well

I’v tried to use var_prompt module in my yml file.

and now i am stuck by it.

I wanna show my remote’s ip address when my prompt is shown up

but as far as i know, i can’t use vars_prompt with task.

This is my yml as below.