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

**URL:** <https://forum.ansible.com/t/including-a-playbook-that-usually-has-a-survey-in-front-of-it/32410>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [March 6, 2020, 5:41pm UTC](https://forum.ansible.com/t/including-a-playbook-that-usually-has-a-survey-in-front-of-it/32410 "2020-03-06T17:41:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_York](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Post date:** [March 6, 2020, 5:41pm UTC](https://forum.ansible.com/t/including-a-playbook-that-usually-has-a-survey-in-front-of-it/32410/1 "2020-03-06T17:41:53Z")

</div>

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!
