# input file for AWX moving code from core to AWX

**URL:** <https://forum.ansible.com/t/input-file-for-awx-moving-code-from-core-to-awx/36975>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [August 11, 2022, 1:07pm UTC](https://forum.ansible.com/t/input-file-for-awx-moving-code-from-core-to-awx/36975 "2022-08-11T13:07:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijeetJanwalkar](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@abhijeetJanwalkar](https://forum.ansible.com/u/abhijeetJanwalkar)\
**Post date:** [August 11, 2022, 1:07pm UTC](https://forum.ansible.com/t/input-file-for-awx-moving-code-from-core-to-awx/36975/1 "2022-08-11T13:07:48Z")

</div>

Hi Team,

Currently I am working on a Role which deploys a VM from template, does a lot of configuration inside VM, installs and configures 8 different agents, format newly added disks etc. For all this there is an input yml file. All works well with Ansible core.

Every time a VM is requested a new input file is populated. When the playbook is executed it asks for a path where the input file is stored on the ansible server.

Down the line there is a plan to move to AWX or Ansible Tower.

My question is how I can use this input file when moved to AWX.  
With Survey can I provide a path where the file is copied on the host?  
If not, what can be done?  
I have too many variables to create a survey for.

Thanks  
Abhi

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [August 11, 2022, 6:22pm UTC](https://forum.ansible.com/t/input-file-for-awx-moving-code-from-core-to-awx/36975/2 "2022-08-11T18:22:41Z")

</div>

You could have a string parameter on a survey which you could then use as a path in a playbook but remember that AWX uses execution environments so your code will be running in a container.  
That being said, you can expose paths from the server to the container via the setting “[Paths to expose to isolated jobs](https://docs.ansible.com/automation-controller/latest/html/userguide/security.html#isolation-functionality-and-variables)”.  
You could also “host” the yaml files on another server somewhere and use the string provided by the survey to download the yaml file.

-The AWX Team
