Network and Prompts

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.

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 ###