On 07.03.2018 11:26, 'Daley Okuwa' via Ansible Project wrote:
thanks
when I run this I also get error message after amending the yaml script
---
- 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: xxxxxx
command: copy running-config ftp
Address or name of remote host:
- 10.241.11.237
Destination filename pod2_c3560-confg:
- pod2_c3560-confg
command: exit
You can only have one command: in expect.
If command is a prompt its not correctly indented.
And one prompt can only be listed once, the different responses is a
list to that prompt.
If you would like more help you _need_ to provide the complete output
when you do this task manually, without it this is futile.
--
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/34a5dd72a432c7ac1d891689eddb68cf%40olstad.com.
For more options, visit https://groups.google.com/d/optout.