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

184 views
Skip to first unread message

Wade C

unread,
Jan 17, 2023, 12:36:37 PM1/17/23
to Ansible Project

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

Wade C

unread,
Jan 17, 2023, 12:37:37 PM1/17/23
to Ansible Project
Let's format that example one more time...
Reply all
Reply to author
Forward
0 new messages