mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
add local directory option to nxos_file_copy (#43277)
* add local directory option to file_copy pull * shippable fix
This commit is contained in:
@@ -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: ©_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 }}"
|
||||
|
||||
Reference in New Issue
Block a user