Hello
I have a config to copy config to a tftp server
but with the expect module
it just hangs no error
it logs it successful with telnet( I can see it in the logs) but does not
copy ( I have tested it manually with ftp)
please tell me where I am going wrong
---
- hosts: cisco
connection: local
gather_facts: yes
ignore_errors: yes
tasks:
- name: run show command via Telnet using the expect module
expect:
command: telnet 10.101.250.12
responses:
Username: admin
Password: xxxxx
POD2_C3560#:
command: copy running-config ftp
responses:
Address or name of remote host []?: 10.241.11.237
Destination filename [pod2_c3560-confg]?: pod2_c3560-confg
command: exit
--
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/158b4c59-7d44-4114-aac2-1aed851c92d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.