-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?

YLR
  • 1,503
  • 4
  • 21
  • 28
  • 1
    Questions about operating systems, their utilities, networking and hardware, are off topic here. [What topics can I ask about here?](https://stackoverflow.com/help/on-topic). Please delete this – Rob Oct 27 '21 at 17:02

1 Answers1

0
  - name: "Use of Ios commands"
    ios_command:
      commands: 
        - "copy running-config tftp:\n<your_ip_adresse>"
        prompt: '[<your_destination_filename>]?'
        answer: '\r'
  • The question is off topic. [What topics can I ask about here?](https://stackoverflow.com/help/on-topic) Do not answer off topic questions. [answer] – Rob Oct 27 '21 at 17:03