Let's format that example one more time...

---
- 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
      

On Tuesday, January 17, 2023 at 9:36:37 AM UTC-8 Wade C wrote:

> 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 :) 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?)
> ​
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a0d94aa6-5534-4d3e-b94c-f01750ec091an%40googlegroups.com.

Reply via email to