Including a playbook that usually has a survey in front of it

Hi AWX Team -

I have a “Build a VM” playbook that typically has a survey in front of it in Ansible Tower. When the user launches it, it asks for hostname and IP address.

If I want to include this play in another playbook (‘Recycle host’) How could I call it from a playbook while providing it variables similar to how the survey does?

e.g. something like:

  • name: Now rebuild the host
    include: build-vm.yaml
    vars:
    requested_hostname: ‘{{ requested_hostname }}’
    requested_ip: ‘{{ requested_ip }}’

Any help appreciated!