Hi Ankur,
I had the same problem with some old hardware, and found, after studying
the code [1], that the following solution works:
- name: run show commands
hosts: routers
gather_facts: false
connection: local
tasks:
- telnet:
login_prompt: "Password: "
user: "{{ pas
I was able to make it work but now after successful execution, it does not
make changes on the end device but result says changes are done.
root@NetworkAutomation-2:~# cat telnettest.yml
---
- name: Telnet test
hosts: cisco
gather_facts: False
tasks:
- telnet:
login_prompt: "P
can any expert guide here?
On Thursday, July 4, 2019 at 9:27:15 AM UTC+5:30, Ankur Atri wrote:
>
> I am trying to perform telnet which works fine with username & password
> but i want to find a way to enter enable password. Below example does not
> work.
>
> - name: run show commands
> hosts:
Hi,
Because I have no cisco device on handy, I "guess" this may work!
Add "Password:" (after "enable" command) as a valid prompt.
prompts:
- "[>|#] |Password:"
Reference page:
https://qiita.com/Yohichi_Hayashi/items/772ea6b1e66d4cc8aa26`
sincerely,
Jane#
Ankur Atri於 2019年7月5日星期五 UTC
Ansible offers dedicated functionality to deal with enable mode on IOS:
https://docs.ansible.com/ansible/latest/network/user_guide/platform_ios.html
On Thu, 4 Jul 2019 at 07:51, Ankur Atri wrote:
>
> I was able to make it work but now after successful execution, it does not
> make changes on
Thank you for the response but i am working on TELNET not SSH.
I am able to telnet the router but changes are not taking effect.
On Thursday, July 4, 2019 at 11:29:36 AM UTC+5:30, Dick Visser wrote:
>
> Ansible offers dedicated functionality to deal with enable mode on IOS:
>
>
> https://docs.a