Reading multiple lines of input using "ansible.builtin.pause" or "vars_prompt" (or another plugin)?

Has anyone come across a way to do this? Something like:

β€” - 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

Where I would then enter multiple lines of text with some clever termination scheme (Ctrl-D, enter β€œdot” enter, enter enter, something else?)

​

Let’s format that example one more time…