add local directory option to nxos_file_copy (#43277)

* add local directory option to file_copy pull

*  shippable fix
This commit is contained in:
saichint
2018-08-02 22:03:06 -07:00
committed by Trishna Guha
parent 7ea909418e
commit e393d5d2b4
2 changed files with 34 additions and 7 deletions

View File

@@ -6,7 +6,10 @@
commands:
- terminal dont-ask
- delete network-integration.cfg
- delete network-integration_copy.cfg
- delete bootflash:/dir1/dir2/dir3/network-integration_copy.cfg
- rmdir dir1/dir2/dir3
- rmdir dir1/dir2
- rmdir dir1
ignore_errors: yes
- name: "Setup - Turn on feature scp-server"
@@ -58,8 +61,9 @@
nxos_file_copy: &copy_pull
file_pull: True
file_pull_timeout: 1200
local_file: "network-integration_copy.cfg"
remote_file: "/network-integration.cfg"
local_file: "network-integration_copy.cfg"
local_file_directory: "dir1/dir2/dir3"
remote_scp_server: "{{ inventory_hostname_short }}"
remote_scp_server_user: "{{ ansible_ssh_user }}"
remote_scp_server_password: "{{ ansible_ssh_pass }}"