# Network and Prompts

**URL:** <https://forum.ansible.com/t/network-and-prompts/23438>\
**Category:** Ansible Project\
**Created:** [January 11, 2017, 9:36pm UTC](https://forum.ansible.com/t/network-and-prompts/23438 "2017-01-11T21:36:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Billy\_B](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@Billy\_B](https://forum.ansible.com/u/Billy_B)\
**Post date:** [January 11, 2017, 9:36pm UTC](https://forum.ansible.com/t/network-and-prompts/23438/1 "2017-01-11T21:36:04Z")

</div>

Hi I am quite new to ansible and I hope I could ask a few questions here please.

My goal

To use ansible to try and configure both Juniper and Cisco devices in one playbook and then test them Eg: run a ping,

How can I prompt for a simple variable will this work? For example

So far  
I have a .Set file which gets called from the. Yml file with set system host-name justarandomname

I would like the justarandombame to be the variable which is imputed after a user prompt.

Thanks any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Johannes\_Kastl](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Post date:** [January 12, 2017, 10:04am UTC](https://forum.ansible.com/t/network-and-prompts/23438/2 "2017-01-12T10:04:48Z")

</div>

Not sure if I understand you right, but you can put this in your yml  
file and call it with the variable set on the command line:

#### snip ###
