Try embedding new line characters in your prompt string:
vars_prompt:
name: "what is your name?"
quest: "what is your quest?"
favcolor: "what is your favorite color?\n 1) red\n 2) green\n 3) blue"
On Sat, Oct 18, 2014 at 9:31 AM, Jim McMahon
<[email protected]> wrote:
> All of the examples I've seen with Ansible prompts have been simple single
> line prompts. For example,
>
> vars_prompt:
> name: "what is your name?"
> quest: "what is your quest?"
> favcolor: "what is your favorite color?"
>
> Is there any way to make a prompt include newlines or a menu like this:
>
> what's your favorite color?
>
> 1) red
>
> 2) green
>
> 3) blue
>
>
>
> --
> 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/2d2dea88-22a1-47c2-a407-f04fbcb1c7b5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
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/CAJQqANeM12i-0pSoqOFYUPECUMjh6t11yO2g-nBZzKLVLpW8iw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.