On 11.01.17 22:36 Billy B wrote:
> How can I prompt for a simple variable will this work?

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

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 ###
---
- hosts: "{{ target }}"
...
#### snip ###

ansible-playbook your_file.yml -e 'target=justarandomname'

Johannes

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/76f9bdc3-fbdf-d4b4-c3e5-cee727ee5d99%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to