Re: [ansible-project] How do i respond to a same response with different input using ansible expect module

2019-07-30 Thread ansi ari
thank you, it works. On Tue, Jul 30, 2019 at 11:10 AM Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 30.07.2019 20:04, ansi ari wrote: > > I tried with single list and that works fine. But my reponses are like > > this: > > Enter command: "U" > > Enter choice :

Re: [ansible-project] How do i respond to a same response with different input using ansible expect module

2019-07-30 Thread Kai Stian Olstad
On 30.07.2019 20:04, ansi ari wrote: > I tried with single list and that works fine. But my reponses are like > this: > Enter command: "U" > Enter choice : "S" > Enter command: "M" > Enter choice: "U" > Enter choice: "S" > Enter choice: "b" >

Re: [ansible-project] How do i respond to a same response with different input using ansible expect module

2019-07-30 Thread ansi ari
I tried with single list and that works fine. But my reponses are like this: Enter command: "U" Enter choice : "S" Enter command: "M" Enter choice: "U" Enter choice: "S" Enter choice: "b" Enter Command: "q" if i give like this expect module will ru

Re: [ansible-project] How do i respond to a same response with different input using ansible expect module

2019-07-30 Thread Kai Stian Olstad
On 30.07.2019 18:24, ansi ari wrote: > Thank you, but i have something like this: if i use the list Enter one is > going to look for M right after U and thats not going to work. > > responses: >> * Enter one*: "U" > Enter next: "S" >>*Enter one*: "M" >>Enter next: "U" > Enter

Re: [ansible-project] How do i respond to a same response with different input using ansible expect module

2019-07-30 Thread ansi ari
Thank you, but i have something like this: if i use the list Enter one is going to look for M right after U and thats not going to work. responses: > * Enter one*: "U" Enter next: "S" > *Enter one*: "M" > Enter next: "U" Enter next: "S" On Monday, July 29, 2019 at 11:53:46 PM U

Re: [ansible-project] How do i respond to a same response with different input using ansible expect module

2019-07-29 Thread Kai Stian Olstad
On 30.07.2019 01:28, ansi ari wrote: I am able to do with different responses with expect module, but i have same responses multiple times with different prompt. eg: responses: Enter one: "A" Enter next: "B" Enter next: "c" can anyone have a better idea? You use a list responses: E

[ansible-project] How do i respond to a same response with different input using ansible expect module

2019-07-29 Thread ansi ari
I am able to do with different responses with expect module, but i have same responses multiple times with different prompt. eg: responses: Enter one: "A" Enter next: "B" Enter next: "c" can anyone have a better idea? -- You received this message because you are subscribed to the Google