On 28. juli 2017 22:49, SARANYA devotional R wrote:
> Thanks Kai!
>
> I am a new beginner to Ansible. if I want to execute series of a commands
> in OVM prompt like list repository etc, what should I do?
Expect takes a list on responses, the fist time it get the response it
will give the first entry, on the second respense the second and so on.
I don't know what commands a OVM prompt take, but lets say you would
like to run "show something", "list something" and "get something" in
that order it would be like this.
- expect:
command: ssh -l admin localhost -p 10000
responses:
admin@localhost's password: "xyz"
OVM>:
- show something
- list something
- get something
--
Kai Stian Olstad