D
D
DenZel2020-02-25 19:52:51
linux
DenZel, 2020-02-25 19:52:51

What is the format of the Question parameter in the expect Ansible module?

Hello.
Tell me how to interactively answer a question in which you need to press the Enter button. And in what format are response1 written ....
I tried: "y", y, I thought that if you press Enter, you need to transfer "".
From the Module documentation:

- name: Generic question with multiple different responses
expect:
command: /path/to/custom/command
responses:
Question:
- response1
- response2
- response3
Thanks!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DenZel, 2020-02-25
@gen4_gdm

Probably found the answer myself: "\n" for Enter interactive input.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question