On Friday, 17 November 2017 17.23.19 CET [email protected] wrote:
> Thank you again Kai,
> 
> I tried your code and i get this output:
> 
> *The full traceback is:*
> *  File "/tmp/ansible_its4CY/ansible_module_expect.py", line 109, in 
> wrapped*
> *    return next(resp_gen)*
> 
> *fatal: [stefano2]: FAILED! => {*
> *    "changed": false,*
> *    "failed": true,*
> *    "invocation": {*
> *        "module_args": {*
> *            "chdir": null,*
> *            "command": "telnet 0 2200",*
> *            "creates": null,*
> *            "echo": false,*
> *            "removes": null,*
> *            "responses": {*
> *                "Enable Common Criteria Compatibility mode.*": "n",*
> *                "Enable Secure Backup mode.*": "n",*
> *                "Password": "password",*
> *                "Press any key to continue\\.": "",*
> *                "idg#": [*
> *                    "configure terminal"*
> *                ],*
> *                "idg\\(config web-mgmt\\)#": [*
> *                    "admin-state enabled",*
> *                    "local-address 127.0.0.1 9090",*
> *                    "exit"*
> *                ],*
> *                "idg\\(config\\)#": [*
> *                    "web-mgmt",*
> *                    "write memory"*
> *                ],*
> *                "login": "admin"*
> *            },*
> *            "timeout": 30*
> *        }*
> *    },*
> *    "msg": "No remaining responses for 'idg\\(config\\)#', output was ' 
> write memory\r\n\r\n% Saving configuration failed - 
> disabled.\r\n\r\nidg(config)#'"*

The messages say "No remaining responses for 'idg\\(config\\)#" so it when 
empty for answers for this question, maybe you are missing an exit for this 
question/prompt?


-- 
Kai Stian Olstad

-- 
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/2358843.UF1VUZP6XO%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to