Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question