Hi

I have this task:

  tasks:
    - expect:
        command: /path/to/bash/script.sh
        responses:
          '#? ': '5'
          "[y/N]": 'y'

expect module correctly responds to first prompt, but not to second. It 
responds to second prompt with '5' when it should respond with 'y'.

When I enable echo=yes, I see:

...
"#? 5"

"[y/N]5"

...

You can easily reproduce it with bash script and two echo/read

Edgars

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/704f6fd4-b7d0-464f-a868-07ab18ba9848%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to