mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
net_put module: add default mode to copy binary files (#41476)
* add default mode to copy binary files * sanity fix * add version for new options
This commit is contained in:
@@ -31,4 +31,20 @@
|
||||
that:
|
||||
- result.changed == true
|
||||
|
||||
- name: copy file with non-ascii characters to ios in template mode(Fail case)
|
||||
net_put:
|
||||
src: nonascii.bin
|
||||
mode: 'template'
|
||||
register: result
|
||||
ignore_errors: true
|
||||
|
||||
- name: copy file with non-ascii characters to ios in default mode(binary)
|
||||
net_put:
|
||||
src: nonascii.bin
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.changed == true
|
||||
|
||||
- debug: msg="END ios cli/net_put.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
Reference in New Issue
Block a user