How to pass variable to another playbook and from imported playbook to role used by it

Hi,

I have two playbooks

Playbook1

  • name: Create Azure VM
    hosts: localhost

  • name: Include Delete IP address
    import_playbook: deleteIPaddress.yml

Vars:
ipaddress:“{{ipaddress}}”

Now in this imported playbook deleteIPaddress.yml I am using role and I want to pass the IP address variable to the role so role can use it.

  • name: Include Delete IP address

-role UserIPAddress

How to do it?
Regards
Rajaniesh