# menu prompts

**URL:** <https://forum.ansible.com/t/menu-prompts/16546>\
**Category:** Ansible Project\
**Created:** [October 18, 2014, 1:31pm UTC](https://forum.ansible.com/t/menu-prompts/16546 "2014-10-18T13:31:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_McMahon](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@Jim\_McMahon](https://forum.ansible.com/u/Jim_McMahon)\
**Post date:** [October 18, 2014, 1:31pm UTC](https://forum.ansible.com/t/menu-prompts/16546/1 "2014-10-18T13:31:15Z")

</div>

All of the examples I’ve seen with Ansible prompts have been simple single line prompts. For example,

```auto
  vars_prompt:
    name: "what is your name?"
    quest: "what is your quest?"
    favcolor: "what is your favorite color?"

```

```auto
Is there any way to make a prompt include newlines or a menu like this:

```

```auto
what's your favorite color?

```

```auto
1) red

```

```auto
2) green

```

```auto
3) blue

```

```auto

```

```auto

```

---

<div class="post-metadata">

**Author:** ![Michael\_Peters](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Post date:** [October 19, 2014, 9:37pm UTC](https://forum.ansible.com/t/menu-prompts/16546/2 "2014-10-19T21:37:19Z")

</div>

Try embedding new line characters in your prompt string:

&nbsp;&nbsp;vars\_prompt:  
&nbsp;&nbsp;&nbsp;&nbsp;name: "what is your name?"  
&nbsp;&nbsp;&nbsp;&nbsp;quest: "what is your quest?"  
&nbsp;&nbsp;&nbsp;&nbsp;favcolor: "what is your favorite color?\n 1) red\n 2) green\n 3) blue"

---

<div class="post-metadata">

**Author:** ![Jim\_McMahon](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@Jim\_McMahon](https://forum.ansible.com/u/Jim_McMahon)\
**Post date:** [October 20, 2014, 6:13pm UTC](https://forum.ansible.com/t/menu-prompts/16546/3 "2014-10-20T18:13:07Z")

</div>

It works! I thought I tried this before, but it worked this time. Thanks.
