mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ignore file_pull (#44614)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
33f5b1aa0f
commit
8b175d99c6
1 changed files with 18 additions and 16 deletions
|
@ -57,25 +57,27 @@
|
||||||
|
|
||||||
- assert: *false
|
- assert: *false
|
||||||
|
|
||||||
- name: "Copy file using file_pull"
|
- block:
|
||||||
nxos_file_copy: ©_pull
|
- name: "Copy file using file_pull"
|
||||||
file_pull: True
|
nxos_file_copy: ©_pull
|
||||||
file_pull_timeout: 1200
|
file_pull: True
|
||||||
remote_file: "/network-integration.cfg"
|
file_pull_timeout: 1200
|
||||||
local_file: "network-integration_copy.cfg"
|
remote_file: "/network-integration.cfg"
|
||||||
local_file_directory: "dir1/dir2/dir3"
|
local_file: "network-integration_copy.cfg"
|
||||||
remote_scp_server: "{{ inventory_hostname_short }}"
|
local_file_directory: "dir1/dir2/dir3"
|
||||||
remote_scp_server_user: "{{ ansible_ssh_user }}"
|
remote_scp_server: "{{ inventory_hostname_short }}"
|
||||||
remote_scp_server_password: "{{ ansible_ssh_pass }}"
|
remote_scp_server_user: "{{ ansible_ssh_user }}"
|
||||||
register: result
|
remote_scp_server_password: "{{ ansible_ssh_pass }}"
|
||||||
|
register: result
|
||||||
|
|
||||||
- assert: *true
|
- assert: *true
|
||||||
|
|
||||||
- name: "Overwrite the file"
|
- name: "Overwrite the file"
|
||||||
nxos_file_copy: *copy_pull
|
nxos_file_copy: *copy_pull
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert: *true
|
- assert: *true
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue