# Reformat example

**URL:** <https://forum.ansible.com/t/reformat-example/45778>\
**Category:** Get Help\
**Created:** [May 7, 2026, 10:00am UTC](https://forum.ansible.com/t/reformat-example/45778 "2026-05-07T10:00:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![emi](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/emi/32/10685_2.png) [@emi](https://forum.ansible.com/u/emi)\
**Post date:** [May 7, 2026, 10:00am UTC](https://forum.ansible.com/t/reformat-example/45778/1 "2026-05-07T10:00:26Z")

</div>

Continuing with [Reading multiple lines of input using "ansible.builtin.pause" or "vars\_prompt" (or another plugin)?](https://forum.ansible.com/t/reading-multiple-lines-of-input-using-ansible-builtin-pause-or-vars-prompt-or-another-plugin/37555):

> [@Reading multiple lines of input using "ansible.builtin.pause" or "vars\_prompt" (or another plugin)?](https://forum.ansible.com/t/reading-multiple-lines-of-input-using-ansible-builtin-pause-or-vars-prompt-or-another-plugin/37555/1):
>
> — - name: Playbook to prompt for a multi-line string hosts: localhost gather\_facts: false tasks: - ansible.builtin.pause: prompt: Enter value multiline: yes # note that this does not exist 🙂 register: result - name: Use the multi-line string debug: var: result

> [@Reading multiple lines of input using "ansible.builtin.pause" or "vars\_prompt" (or another plugin)?](https://forum.ansible.com/t/reading-multiple-lines-of-input-using-ansible-builtin-pause-or-vars-prompt-or-another-plugin/37555/2):
>
> Let’s format that example one more time…

```yaml
- name: Playbook to prompt for a multi-line string
  hosts: localhost
  gather_facts: false
  tasks:
    - ansible.builtin.pause:
        prompt: Enter value
        multiline: yes # note that this does not exist :slight_smile:
        register: result
    - name: Use the multi-line string
      debug:
        var: result

```
