On Tuesday, February 9, 2016 at 12:05:57 PM UTC-6, CD Truong wrote:
>
> Hi,
>
> I ran into a problem with expect module response the same value to all 
> prompt.
>
> I have a task that execute a command and expecting four prompt the expect 
> module response to the first prompt correctly but response to the 2nd & 3rd 
> prompt with the same value from the 1st prompt.
>
>  - expect:
>     command: /path/to/the/script.sh        #The script will return 4 
> response
>     responses:
>      '.*?:$': '12345'
>      '.*?:$': '12345'
>      '.*?:$': 'xena-warrior'
>      '.*?:$': '12345'
>     echo: yes
>
> All prompts have end of line ':'
>
> From the output I can see the response '12345' in the third prompt and not 
> 'xena-warrior'.
>
> Any help would greatly appreciated,
>
> David.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/41add5d2-b766-4d17-be77-f830ad88dcea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to