mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-09 14:50:02 -07: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:
parent
2e68811c34
commit
e91cee1a31
3 changed files with 70 additions and 17 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue