Subject: [ansible-project] Ansible - Responding to prompts


On 10.08.2019 20:34, Michael wrote:

Actually you should use "Enter your choice", since that is the last string before the program is waiting for an answer.
> but im trying to make sure that i am skipping

It's fragile depending on the other output/error, but I think this should work.

  responses:
    CREATE TABLE xmeta.*Enter your choice: 2

Pexpect has DOTALL on, so a dot includes new lines as a match as well.

Kai Stian Olstad