Closed iamroddo closed 6 years ago
@iamroddo Do you have it set to connection: local?
This repository is pretty much deprecated. I am not really doing any maintenance on it. You might want to check out ntc_file_copy in the ntc-ansible library.
I have connection: local set. I need to use ProxyCommand which I think ntc_file_copy doesn't support. I've seen that Netmiko now supports file_transfer. I'll try making a script to do the same job.
With Ansible 2.5.4 this module initiates a SCP file transfer. I can see from "debug ip scp" that a transfer occurs. However the name of the file on bootflash is always '"` (no quotation marks used) which looks like the module code. The same result appears whether the file to be transferred exists or not.
The playbook
The output with `ANSIBLE_DEBUG=1