Re: [ansible-devel] Re: potential bug in eric_eccli module,

2019-08-16 Thread Lucas Möller
Oh you're right, I have had a slightly different syntax. It is working now as you told me, we can close down the discussion. Thank you for helping me out. Best regards Lucas On Friday, August 16, 2019 at 12:35:39 PM UTC+2, Ganesh Nalawade wrote: > > The task input seems to be wrong. Value of “c

Re: [ansible-devel] Re: potential bug in eric_eccli module,

2019-08-16 Thread Ganesh Nalawade
The task input seems to be wrong. Value of “commands” should be dictionary. Check the earlier mail for expected task input On Fri, 16 Aug 2019 at 3:13 PM, Lucas Möller wrote: > Just that prompt, answer are noarguments of eric_eccli, here is the output: > > "changed": false, > "invocation

Re: [ansible-devel] Re: potential bug in eric_eccli module,

2019-08-16 Thread Lucas Möller
Just that prompt, answer are noarguments of eric_eccli, here is the output: "changed": false, "invocation": { "module_args": { "answer": [ "y" ], "commands": "save configuration", "prompt": [ "(y/n)"

Re: [ansible-devel] Re: potential bug in eric_eccli module,

2019-08-16 Thread Ganesh Nalawade
Yes please raise a Github issue. Based on code eric_eccli_commnad module should support prompt when the value of “commands” option is list of dictionary. What is the error you see with eric_eccli_command module. On Fri, 16 Aug 2019 at 2:01 PM, Lucas Möller wrote: > Ok I have now checked the py

[ansible-devel] Re: potential bug in eric_eccli module,

2019-08-16 Thread Lucas Möller
Ok I have now checked the python code and commented the argument newline out (lib/ansible/modules/network/cli/cli_command.py: Line 147). It is seems to work now. But there is then an issue with the newline parameter on the type of network devices. If anybody does not have a better solution or a

[ansible-devel] Re: potential bug in eric_eccli module,

2019-08-16 Thread Lucas Möller
Thank you for the information. eric_eccli_command has actually no option for prompts. cli_command is then the way to go but there is another issue with that, which seems not to be related to the input in the playbook, but the output from the device: "changed": false, "invocation": {

[ansible-devel] Re: potential bug in eric_eccli module,

2019-08-15 Thread Ganesh Nalawade
Try with below task. The prompt option is a regex value to match the expected terminal prompt after executing the command. - name: save configuration to flash memory eric_eccli_command: commands: - command: save configuration prompt: answer: 'y' OR - name: save con