Reputation: 1
I have tried ios_command module to run command "copy running-config tftp" Next I have to provide ip of tftp server. Followed by destination file name. I have tftp server running and I have ip address of it. But to provide the ip address and file name. I have tried with sending ios_command:
commands:
-copy running-config tftp
-ip of my tftp server.
It didn't worked Can anyone help me?
Upvotes: -1
Views: 1291
Reputation: 41
- name: "Use of Ios commands"
ios_command:
commands:
- "copy running-config tftp:\n<your_ip_adresse>"
prompt: '[<your_destination_filename>]?'
answer: '\r'
Upvotes: 0